From 783fbb9d3e1dd7d223864f436c6a35e432c084b1 Mon Sep 17 00:00:00 2001 From: Nate Kuneman Date: Wed, 26 Jun 2024 15:42:58 -0600 Subject: [PATCH 1/2] chore(deployer): add TF example for Azure teams secure storage connector --- .../team-secure-storage-connector/main.tf | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 examples/team-secure-storage-connector/main.tf diff --git a/examples/team-secure-storage-connector/main.tf b/examples/team-secure-storage-connector/main.tf new file mode 100644 index 0000000..c620712 --- /dev/null +++ b/examples/team-secure-storage-connector/main.tf @@ -0,0 +1,61 @@ + +variable "subscription_id" { + type = string + description = "Azure Subscription ID" +} + +variable "tenant_id" { + type = string + description = "Azure Tenant ID" +} + +variable "namespace" { + type = string + description = "Prefix for naming Azure resources" +} + +variable "resource_group" { + type = string + description = "Azure resource group to create resources in" +} + +variable "oidc_issuer_url" { + type = string + description = "OIDC issuer URL from deployment cluster" +} + +variable "deletion_protection" { + type = bool + description = "Prefix of your bucket" + default = true +} + +provider "azurerm" { + features {} + subscription_id = var.subscription_id + tenant_id = var.tenant_id +} + +module "secure_storage_connector" { + source = "wandb/wandb/azurerm//modules/secure_storage_connector" + namespace = var.namespace + resource_group_name = var.resource_group + oidc_issuer_url = var.oidc_issuer_url + deletion_protection = var.deletion_protection +} + +output "storage_account_name" { + value = module.secure_storage_connector.storage_account_name +} + +output "storage_container_name" { + value = module.secure_storage_connector.storage_container_name +} + +output "managed_identity_client_id" { + value = module.secure_storage_connector.managed_identity_client_id +} + +output "tenant_id" { + value = module.secure_storage_connector.tenant_id +} \ No newline at end of file From aff18760205273cc8074f159732dacfbd7c11832 Mon Sep 17 00:00:00 2001 From: Nate Kuneman Date: Wed, 26 Jun 2024 16:21:02 -0600 Subject: [PATCH 2/2] chore(deployer): Add TF example for Azure teams secure storage connector