Creates a Terraform Cloud Secret Backend for Vault. Terraform Cloud secret backends can then create Terraform Cloud tokens, once a role with the appropriate creds has been added to the backend.
resource "vault_terraform_cloud_secret_backend" "test" {
backend = "terraform"
description = "Manages the Terraform Cloud backend"
token = "V0idfhi2iksSDU234ucdbi2nidsi..."
}
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.
Available only for Vault Enterprise.
token
- (Required) The Terraform Cloud management token this backend should
use to issue new tokens.
backend
- (Optional) The unique location this backend should be mounted at. Must not begin or end with a /
. Defaults to terraform
.
disable_remount
- (Optional) If set, opts out of mount migration on path updates.
See here for more info on Mount Migration
description
- (Optional) A human-friendly description for this backend.
default_lease_ttl_seconds
- (Optional) The default TTL for credentials issued by this backend.
max_lease_ttl_seconds
- (Optional) The maximum TTL that can be requested
for credentials issued by this backend.
No additional attributes are exported by this resource.
Terraform Cloud secret backends can be imported using the backend
, e.g.
$ terraform import vault_terraform_cloud_secret_backend.example terraform