From e1cdcb513a789bfccb49c514e4b9036ea3ec9dba Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Mon, 1 Jun 2026 11:17:47 -0700 Subject: [PATCH] Simplify Cloudflare zone resource mapping --- infra/relay/src/managedEndpointStack.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/infra/relay/src/managedEndpointStack.ts b/infra/relay/src/managedEndpointStack.ts index b82c10a809..6cc7b56e50 100644 --- a/infra/relay/src/managedEndpointStack.ts +++ b/infra/relay/src/managedEndpointStack.ts @@ -17,11 +17,9 @@ export const ManagedEndpointZone = Effect.gen(function* () { { effect: "allow", permissionGroups: ["DNS Read", "DNS Write"], - resources: zone.zoneId.pipe( - Output.map((id) => ({ - [`com.cloudflare.api.account.zone.${id}`]: "*", - })), - ), + resources: Output.map(zone.zoneId, (id) => ({ + [`com.cloudflare.api.account.zone.${id}`]: "*", + })), }, ], });