Simplify Cloudflare zone resource mapping

This commit is contained in:
Julius Marminge committed 2026-06-04 14:02:59 -07:00
1 parent 2048bcdfbe
commit e1cdcb513a
1 file changed
+3 -5
+3 -5
View File
@@ -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}`]: "*",
})),
},
],
});