mirror of
https://github.com/hanzokms/terraform-provider.git
synced 2026-10-30 20:29:45 +00:00
2.3 KiB
2.3 KiB
page_title, subcategory, description
| page_title | subcategory | description |
|---|---|---|
| kms_app_connection_gitlab Resource - terraform-provider | App Connections | Create and manage GitLab App Connection |
kms_app_connection_gitlab (Resource)
Create and manage GitLab 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_gitlab" "gitlab_connection" {
name = "gitlab-connection"
description = "GitLab connection for CI/CD variables sync"
method = "access-token"
credentials = {
access_token = "<access-token>"
instance_url = "https://gitlab.com" # Or your self-hosted GitLab URL
access_token_type = "project" # Or "personal"
}
}
Schema
Required
credentials(Attributes) The credentials for the GitLab App Connection (see below for nested schema)method(String) The method used to authenticate with GitLab. Possible values are: access-tokenname(String) The name of the GitLab App Connection to create. Must be slug-friendly
Optional
description(String) An optional description for the GitLab 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 GitLab App Connection credentialsid(String) The ID of the app connection
Nested Schema for credentials
Required:
access_token(String, Sensitive) The Access Token used to access GitLab.access_token_type(String) The type of token used to connect with GitLab. Supported options: 'project' and 'personal'
Optional:
instance_url(String) The GitLab instance URL to connect with. (default: https://gitlab.com)