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")

  custom_endpoint = {
    api     = "www.googleapis.com"
    iam     = "iam.googleapis.com"
    crm     = "cloudresourcemanager.googleapis.com"
    compute = "compute.googleapis.com"
  }
}

Argument Reference

The following arguments are supported:

The tune block is used to tune the auth backend:

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