16 lines
221 B
Terraform
16 lines
221 B
Terraform
|
resource "consul_acl_policy" "server_policy" {
|
||
|
name = "consul-servers"
|
||
|
rules = <<EOH
|
||
|
node_prefix "server-" {
|
||
|
policy = "write"
|
||
|
}
|
||
|
node_prefix "" {
|
||
|
policy = "read"
|
||
|
}
|
||
|
service_prefix "" {
|
||
|
policy = "read"
|
||
|
}
|
||
|
|
||
|
EOH
|
||
|
}
|