"Name": "Terraform Token",
"Type": "client",
"Rules": "key \"terraform/states\" {policy = \"write\"} key \"terraform/states/*\" {policy = \"write\"}"
Here is my backend configuration:
terraform {
backend "consul" {
path = "terraform/states"
access_token = "b95977a7-5197-db2f-669f-96f2742b0541"
datacenter = "zis-vault-ci"
}
}
I created the key "terraform/states" but keeps getting "Error loading state: failed to lock state in Consul: Unexpected response code: 403 (Permission denied)"
If I change the ACL type to management and remove the rules. It works fine.
Can anyone provide a working ACL sample I can model with?
Any help is appreciated.
Thanks