Simplify Cloudflare zone resource mapping
This commit is contained in:
1 parent
2048bcdfbe
commit
e1cdcb513a
1 file changed
+3
-5
@@ -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}`]: "*",
|
||||
})),
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user