The consul_acl_policy
data source returns the information related to a
Consul ACL Policy.
data "consul_acl_policy" "agent" {
name = "agent"
}
output "consul_acl_policy" {
value = data.consul_acl_policy.agent.rules
}
The following arguments are supported:
name
- (Required) The name of the ACL Policy.namespace
- (Optional, Enterprise Only) The namespace to lookup the policy.partition
- (Optional, Enterprise Only) The partition to lookup the policy.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.