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

3.5 KiB

page_title, subcategory, description
page_title subcategory description
kms_app_connection_azure_devops Resource - terraform-provider App Connections Create and manage Azure DevOps App Connection

kms_app_connection_azure_devops (Resource)

Create and manage Azure DevOps 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_devops" "app_connection_azure_devops_client_secret" {
  name   = "app-connection-azure-devops-client-secret"
  method = "client-secret"
  credentials = {
    organization_name = "<azure-devops-organization-name>"
    tenant_id         = "<azure-tenant-id>"
    client_id         = "<azure-client-id>"
    client_secret     = "<azure-client-secret>"
  }
  description = "I am a test Azure DevOps app connection using client credentials"
}

resource "kms_app_connection_azure_devops" "app_connection_azure_devops_access_token" {
  name   = "app-connection-azure-devops-access-token"
  method = "access-token"
  credentials = {
    organization_name = "<azure-devops-organization-name>"
    access_token      = "<azure-devops-access-token>"
  }
  description = "I am a test Azure DevOps app connection using access token"
}

Schema

Required

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

Optional

  • description (String) An optional description for the Azure DevOps 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 DevOps App Connection credentials
  • id (String) The ID of the app connection

Nested Schema for credentials

Required:

  • organization_name (String) The name of the Azure DevOps organization. For more details, refer to the documentation here hanzo.ai/docs/integrations/app-connections/azure-devops

Optional:

  • access_token (String, Sensitive) The Azure DevOps access token. Required for access-token method. For more details, refer to the documentation here hanzo.ai/docs/integrations/app-connections/azure-devops
  • 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