consul_acl_policy

Starting with Consul 1.4.0, the consul_acl_policy can be used to managed Consul ACL policies.

Example Usage

resource "consul_acl_policy" "test" {
  name        = "my_policy"
  datacenters = ["dc1"]
  rules       = <<-RULE
    node_prefix "" {
      policy = "read"
    }
    RULE
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

consul_acl_policy can be imported:

$ terraform import consul_acl_policy.my-policy 1c90ef03-a6dd-6a8c-ac49-042ad3752896