cdk-real-drift 0.2.66 → 0.2.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +3 -2
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -10001,12 +10001,13 @@ const writeEventBusPolicy = async (ctx) => {
|
|
|
10001
10001
|
const action = ctx.declared["Action"];
|
|
10002
10002
|
const principal = str(ctx.declared["Principal"]);
|
|
10003
10003
|
if (action === void 0 || principal === void 0) throw new Error("EventBusPolicy revert needs a Statement (or Action + Principal)");
|
|
10004
|
+
const { partition } = partitionForRegion(ctx.region);
|
|
10004
10005
|
desiredStatement = {
|
|
10005
10006
|
Sid: statementId,
|
|
10006
10007
|
Effect: "Allow",
|
|
10007
|
-
Principal: principal === "*" ? "*" : { AWS: `arn:
|
|
10008
|
+
Principal: principal === "*" ? "*" : { AWS: `arn:${partition}:iam::${principal}:root` },
|
|
10008
10009
|
Action: action,
|
|
10009
|
-
Resource: `arn:
|
|
10010
|
+
Resource: `arn:${partition}:events:${ctx.region}:${ctx.accountId}:event-bus/${eventBusName}`,
|
|
10010
10011
|
...ctx.declared["Condition"] !== void 0 ? { Condition: ctx.declared["Condition"] } : {}
|
|
10011
10012
|
};
|
|
10012
10013
|
}
|