Files

2.0 KiB

page_title, subcategory, description
page_title subcategory description
kms_integration_circleci Resource - terraform-provider Native Integrations - DEPRECATED Create CircleCI integration & save to Hanzo KMS. Only Machine Identity authentication is supported for this data source

kms_integration_circleci (Resource)

Create CircleCI integration & save to Hanzo KMS. Only Machine Identity authentication is supported for this data source

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_integration_circleci" "circleci-integration" {
  project_id  = "225393b9-e3d6-424f-9df3-22c3cdeb97c9"
  environment = "dev"
  secret_path = "/test-folder"

  circleci_token      = "<your-circle-cipersonal-access-token>"
  circleci_project_id = "<your-circleci-project-id>"
  circleci_org_slug   = "<your-circleci-org-slug>"
}

Schema

Required

  • circleci_org_slug (String) The organization slug of your CircleCI organization.
  • circleci_project_id (String) The project ID of your CircleCI project.
  • circleci_token (String, Sensitive) Your personal CircleCI token to authenticate with.
  • environment (String) The slug of the environment to sync to CircleCI (prod, dev, staging, etc).
  • project_id (String) The ID of your Hanzo KMS project.
  • secret_path (String) The secret path in Hanzo KMS to sync secrets from.

Read-Only

  • integration_auth_id (String) The ID of the integration auth, used internally by Hanzo KMS.
  • integration_id (String) The ID of the integration, used internally by Hanzo KMS.