Files
terraform-provider/docs/resources/app_connection_azure_client_secrets.md

2.7 KiB

page_title, subcategory, description
page_title subcategory description
kms_app_connection_azure_client_secrets Resource - terraform-provider App Connections Create and manage Azure Client Secrets App Connection

kms_app_connection_azure_client_secrets (Resource)

Create and manage Azure Client Secrets App Connection

Example Usage

terraform {
  required_providers {
    kms = {
      # version = <latest version>
      source = "hanzokms/kms"
    }
  }
}

provider "kms" {
  host = "https://kms.hanzo.ai" # Only required if using self hosted instance of Hanzo KMS, default is https://kms.hanzo.ai
  auth = {
    universal = {
      client_id     = "<machine-identity-client-id>"
      client_secret = "<machine-identity-client-secret>"
    }
  }
}

resource "kms_app_connection_azure_client_secrets" "app_connection_azure_client_secret" {
  name   = "app_connection_azure_client_secret"
  method = "client-secret"
  credentials = {
    tenant_id     = "<azure-tenant-id>"
    client_id     = "<azure-client-id>"
    client_secret = "<azure-client-secret>"
  }
  description = "I am a test Azure app connection using client credentials"
}

Schema

Required

  • credentials (Attributes) The credentials for the Azure Client Secrets App Connection (see below for nested schema)
  • method (String) The method used to authenticate with Azure Client Secrets. Possible values are: client-secret
  • name (String) The name of the Azure Client Secrets App Connection to create. Must be slug-friendly

Optional

  • description (String) An optional description for the Azure Client Secrets App Connection.
  • project_id (String) The ID of the project to scope the app connection to. If not provided, the app connection will be scoped to the organization.

Read-Only

  • credentials_hash (String) The hash of the Azure Client Secrets App Connection credentials
  • id (String) The ID of the app connection

Nested Schema for credentials

Required:

  • client_id (String, Sensitive) The Azure application (client) ID. Required for client-secret method. For more details, refer to the documentation here hanzo.ai/docs/integrations/app-connections/azure-client-secrets
  • client_secret (String, Sensitive) The Azure client secret. Required for client-secret method. For more details, refer to the documentation here hanzo.ai/docs/integrations/app-connections/azure-client-secrets
  • tenant_id (String) The Azure Active Directory (AAD) tenant ID. Required for client-secret method. For more details, refer to the documentation here hanzo.ai/docs/integrations/app-connections/azure-client-secrets