» consul_acl_token

The consul_acl_token data source returns the information related to the consul_acl_token resource with the exception of its secret ID.

If you want to get the secret ID associated with a token, use the consul_acl_token_secret_id data source.

» Example Usage

data "consul_acl_token" "test" {
  accessor_id = "00000000-0000-0000-0000-000000000002"
}

output "consul_acl_policies" {
  value = "${data.consul_acl_token.test.policies}"
}

» Argument Reference

The following arguments are supported:

  • accessor_id - (Required) The accessor ID of the ACL token.

» Attributes Reference

The following attributes are exported:

  • description - The description of the ACL token.
  • policies - A list of policies associated with the ACL token. Each entry has an id and a name attribute.
  • local - Whether the ACL token is local to the datacenter it was created within.