Creates a GitHub App 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.
resource "vault_secrets_sync_github_apps" "github-apps" {
name = "gh-apps"
app_id = var.app_id
private_key = file(var.privatekey_file)
}
The following arguments are supported:
namespace
- (Optional) The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespace
is always relative to the provider's configured namespace.
name
- (Required) The user-defined name of the GitHub App configuration.
app_id
- (Required) The GitHub application ID.
private_key
- (Required) The content of a PEM formatted private key generated on GitHub for the app.
GitHub Apps Secrets sync configuration endpoint can be imported using the name
, e.g.
$ terraform import vault_secrets_sync_github_apps.gh github-apps