fix(cloudflared): remove deprecated permissions field

This commit is contained in:
Khue Doan 2024-04-18 16:25:09 +07:00
parent 8d00d55eb1
commit 295914cfae

View File

@ -50,8 +50,8 @@ resource "cloudflare_api_token" "external_dns" {
policy {
permission_groups = [
data.cloudflare_api_token_permission_groups.all.permissions["Zone Read"],
data.cloudflare_api_token_permission_groups.all.permissions["DNS Write"]
data.cloudflare_api_token_permission_groups.all.zone["Zone Read"],
data.cloudflare_api_token_permission_groups.all.zone["DNS Write"]
]
resources = {
"com.cloudflare.api.account.zone.*" = "*"
@ -79,8 +79,8 @@ resource "cloudflare_api_token" "cert_manager" {
policy {
permission_groups = [
data.cloudflare_api_token_permission_groups.all.permissions["Zone Read"],
data.cloudflare_api_token_permission_groups.all.permissions["DNS Write"]
data.cloudflare_api_token_permission_groups.all.zone["Zone Read"],
data.cloudflare_api_token_permission_groups.all.zone["DNS Write"]
]
resources = {
"com.cloudflare.api.account.zone.*" = "*"