From 5cf7f1fc111d6d6cba5fc9b1afd0f122176265aa Mon Sep 17 00:00:00 2001 From: Zack Pollard Date: Fri, 4 Oct 2024 16:23:52 +0100 Subject: [PATCH] feat: add worker route permissions to github terraform API key (#216) --- deployment/modules/cloudflare/api-keys/api-keys.tf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deployment/modules/cloudflare/api-keys/api-keys.tf b/deployment/modules/cloudflare/api-keys/api-keys.tf index 52fc882f..2fadc716 100644 --- a/deployment/modules/cloudflare/api-keys/api-keys.tf +++ b/deployment/modules/cloudflare/api-keys/api-keys.tf @@ -16,6 +16,8 @@ resource "cloudflare_api_token" "terraform_cloudflare_account" { data.cloudflare_api_token_permission_groups.all.account["Workers Scripts Read"], data.cloudflare_api_token_permission_groups.all.account["Workers KV Storage Write"], data.cloudflare_api_token_permission_groups.all.account["Workers KV Storage Read"], + data.cloudflare_api_token_permission_groups.all.zone["Workers Routes Read"], + data.cloudflare_api_token_permission_groups.all.zone["Workers Routes Write"], ] resources = { "com.cloudflare.api.account.*" = "*"