» vault_gcp_auth_backend

Provides a resource to configure the GCP auth backend within Vault.

» Example Usage

resource "vault_gcp_auth_backend" "gcp" {
    credentials  = "${file("vault-gcp-credentials.json")}"
}

» Argument Reference

The following arguments are supported:

  • credentials - A JSON string containing the contents of a GCP credentials file. If this value is empty, Vault will try to use Application Default Credentials from the machine on which the Vault server is running.

For more details on the usage of each argument consult the Vault GCP API documentation.

» Attribute Reference

In addition to the fields above, the following attributes are also exposed:

» Import

GCP authentication backends can be imported using the backend name, e.g.

$ terraform import vault_gcp_auth_backend.gcp gcp