consul_acl_token_secret_id

The consul_acl_token_secret data source returns the secret ID associated to the accessor ID. This can be useful to make systems that cannot use an auth method to interface with Consul.

If you want to get other attributes of the Consul ACL token, please use the consul_acl_token data source.

Example Usage

resource "consul_acl_policy" "test" {
    name        = "test"
    rules       = "node \"\" { policy = \"read\" }"
    datacenters = [ "dc1" ]
}

resource "consul_acl_token" "test" {
    description = "test"
    policies    = [consul_acl_policy.test.name]
    local       = true
}

data "consul_acl_token_secret_id" "read" {
    accessor_id = consul_acl_token.test.id
    pgp_key     = "keybase:my_username"
}

output "consul_acl_token_secret_id" {
  value = data.consul_acl_token_secret_id.read.encrypted_secret_id
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported: