» consul_acl_role

The consul_acl_role data source returns the information related to a Consul ACL Role.

» Example Usage

data "consul_acl_role" "test" {
  name = "example-role"
}

output "consul_acl_role" {
  value = data.consul_acl_role.test.id
}

» Argument Reference

The following arguments are supported:

  • name - (Required) The name of the ACL Role.
  • namespace - (Optional, Enterprise Only) The namespace to lookup the role.

» Attributes Reference

The following attributes are exported:

  • description - The description of the ACL Role.
  • policies - The list of policies associated with the ACL Role. Each entry has an id and a name attribute.
  • service_identities - The list of service identities associated with the ACL Role. Each entry has a service_name attribute and a list of datacenters.