vault_consul_secret_backend

Creates a Consul Secret Backend for Vault. Consul secret backends can then issue Consul tokens, once a role has been added to the backend.

Example Usage

Creating a standard backend resource:

resource "vault_consul_secret_backend" "test" {
  path        = "consul"
  description = "Manages the Consul backend"
  address     = "127.0.0.1:8500"
  token       = "4240861b-ce3d-8530-115a-521ff070dd29"
}

Creating a backend resource to bootstrap a new Consul instance:

resource "vault_consul_secret_backend" "test" {
  path        = "consul"
  description = "Bootstrap the Consul backend"
  address     = "127.0.0.1:8500"
  bootstrap   = true
}

Argument Reference

The following arguments are supported:

Attributes Reference

No additional attributes are exported by this resource.

Import

Consul secret backends can be imported using the path, e.g.

$ terraform import vault_consul_secret_backend.example consul