pulumi/pkg/secrets/cloud/BUILD.bazel

54 lines
1.7 KiB
Python

load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "cloud",
srcs = ["manager.go"],
importpath = "github.com/pulumi/pulumi/pkg/v3/secrets/cloud",
visibility = ["//visibility:public"],
deps = [
"//pkg/authhelpers",
"//pkg/secrets",
"//sdk/go/common/resource/config",
"//sdk/go/common/workspace",
"@dev_gocloud//secrets",
"@dev_gocloud//secrets/awskms",
"@dev_gocloud//secrets/azurekeyvault",
"@dev_gocloud//secrets/gcpkms",
"@dev_gocloud_secrets_hashivault//:hashivault",
"@org_golang_google_api//cloudkms/v1:cloudkms",
],
)
alias(
name = "go_default_library",
actual = ":cloud",
visibility = ["//visibility:public"],
)
go_test(
name = "cloud_test",
srcs = [
"aws_test.go",
"azure_test.go",
"gcp_test.go",
"manager_test.go",
],
embed = [":cloud"],
deps = [
"//sdk/go/common/workspace",
"@com_github_aws_aws_sdk_go_v2//aws",
"@com_github_aws_aws_sdk_go_v2_config//:config",
"@com_github_aws_aws_sdk_go_v2_service_iam//:iam",
"@com_github_aws_aws_sdk_go_v2_service_kms//:kms",
"@com_github_aws_aws_sdk_go_v2_service_sts//:sts",
"@com_github_azure_azure_sdk_for_go_sdk_azidentity//:azidentity",
"@com_github_azure_azure_sdk_for_go_sdk_keyvault_azkeys//:azkeys",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@com_google_cloud_go_kms//apiv1",
"@com_google_cloud_go_kms//apiv1/kmspb",
"@dev_gocloud//secrets",
"@dev_gocloud//secrets/driver",
],
)