» consul_acl_policy

The consul_acl_policy data source returns the information related to a Consul ACL Policy.

» Example Usage

data "consul_acl_policy" "agent" {
  name  = "agent"
}

output "consul_acl_policy" {
  value = data.consul_acl_policy.agent.rules
}

» Argument Reference

The following arguments are supported:

  • name - (Required) The name of the ACL Policy.

» Attributes Reference

The following attributes are exported:

  • description - The description of the ACL Policy.
  • rules - The rules associated with the ACL Policy.
  • datacenters - The datacenters associated with the ACL Policy.