2023-03-09 09:23:42 -05:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "aws",
|
2024-02-06 08:27:30 -05:00
|
|
|
srcs = ["aws.go"],
|
2023-03-09 09:23:42 -05:00
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/internal/cloud/aws",
|
|
|
|
visibility = ["//:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
"//internal/cloud",
|
|
|
|
"//internal/cloud/metadata",
|
2023-07-21 10:43:51 -04:00
|
|
|
"//internal/constants",
|
2023-03-09 09:23:42 -05:00
|
|
|
"//internal/role",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2//aws",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2_config//:config",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2_feature_ec2_imds//:imds",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2_service_ec2//:ec2",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2_service_ec2//types",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2_service_elasticloadbalancingv2//:elasticloadbalancingv2",
|
2023-07-21 10:43:51 -04:00
|
|
|
"@com_github_aws_aws_sdk_go_v2_service_elasticloadbalancingv2//types",
|
2023-03-09 09:23:42 -05:00
|
|
|
"@com_github_aws_aws_sdk_go_v2_service_resourcegroupstaggingapi//:resourcegroupstaggingapi",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2_service_resourcegroupstaggingapi//types",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "aws_test",
|
2024-02-06 08:27:30 -05:00
|
|
|
srcs = ["aws_test.go"],
|
2023-03-09 09:23:42 -05:00
|
|
|
embed = [":aws"],
|
|
|
|
deps = [
|
|
|
|
"//internal/cloud",
|
|
|
|
"//internal/cloud/metadata",
|
|
|
|
"//internal/role",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2//aws",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2_feature_ec2_imds//:imds",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2_service_ec2//:ec2",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2_service_ec2//types",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2_service_elasticloadbalancingv2//:elasticloadbalancingv2",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2_service_elasticloadbalancingv2//types",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2_service_resourcegroupstaggingapi//:resourcegroupstaggingapi",
|
|
|
|
"@com_github_aws_aws_sdk_go_v2_service_resourcegroupstaggingapi//types",
|
|
|
|
"@com_github_stretchr_testify//assert",
|
|
|
|
],
|
|
|
|
)
|