hashicorp / terraform-provider-azurestack

Terraform provider for Azure Stack
https://www.terraform.io/docs/providers/azurestack/
Mozilla Public License 2.0
40 stars 63 forks source link

Support for Key Vault #172

Closed robertdias closed 2 years ago

robertdias commented 2 years ago

Community Note

Description

Please update the provider to support deploying Key Vault resource to Azure Stack Hub.

New or Affected Resource(s)

Potential Terraform Configuration

resource "azurestack_key_vault" "kv" {
    name = var.kv_name
    resource_group_name = var.resource_group_name
    location = var.location
    sku_name = var.keyvault_sku
    enabled_for_deployment = var.enabled_for_deployment
    enabled_for_disk_encryption = var.enabled_for_disk_encryption
    enabled_for_template_deployment = var.enabled_for_template_deployment
    enable_rbac_authorization = var.enable_rbac_authorization
    soft_delete_retention_days = var.soft_delete_retention_days
    purge_protection_enabled = var.purge_protection_enabled
    tenant_id = var.tenant_id

  access_policy {
    tenant_id = data.azurestack_client_config.current.tenant_id
    object_id = data.azurestack_client_config.current.object_id

    key_permissions = [
      "create",
      "get",
      "list",
    ]

    secret_permissions = [
      "set",
      "get",
      "delete",
      "list",
      "purge",
    ]
    storage_permissions = [
      "set",
      "get",
      "delete",
      "list",
    ]
  }
}

References

None

TheBlackMini commented 2 years ago

KeyVault is in release 1.0.0 https://github.com/hashicorp/terraform-provider-azurestack/pull/151

No idea when this is getting released though!

jbpaux commented 2 years ago

Can be closed as v1.0.0 is released