From 295914cfaed034229ba681629e8e6829549a8325 Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Thu, 18 Apr 2024 16:25:09 +0700 Subject: [PATCH] fix(cloudflared): remove deprecated permissions field --- external/modules/cloudflare/main.tf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/external/modules/cloudflare/main.tf b/external/modules/cloudflare/main.tf index 0a640e57..21e5b819 100644 --- a/external/modules/cloudflare/main.tf +++ b/external/modules/cloudflare/main.tf @@ -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.*" = "*"