variable "hostname" { description = "Host of the consul agent" type = string } variable "datacenter" { description = "Which DC to create the Consul policy in" type = string } variable "vault_consul_secret_backend" { description = "Consul secret backend instance in Vault" type = any } variable "encryption_key_path" { type = string } variable "encryption_key" { type = string } variable "agent_token_path" { type = string } variable "replication_token_path" { type = string default = "" } variable "anonymous_token_path" { type = string } variable "vault_mount" { type = any } resource "consul_acl_policy" "agent" { name = "${var.hostname}-consul-agent" rules = <