vault_secrets_sync_gh_destination

Creates a GitHub destination to synchronize secrets in Vault. Requires Vault 1.16+. Available only for Vault Enterprise.

For more information on syncing secrets with GitHub, please refer to the Vault documentation.

Example Usage

resource "vault_secrets_sync_gh_destination" "gh" {
  name                 = "gh-dest"
  access_token         = var.access_token
  repository_owner     = var.repo_owner
  repository_name      = "repo-name-example"
  secret_name_template = "vault_{{ .MountAccessor | lowercase }}_{{ .SecretPath | lowercase }}"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported in addition to the above:

Import

GitHub Secrets sync destinations can be imported using the name, e.g.

$ terraform import vault_secrets_sync_gh_destination.gh gh-dest