Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions packages/aws-cdk-lib/cx-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -658,3 +658,24 @@ _cdk.json_
}
}
```

* `@aws-cdk/aws-events:requireEventBusPolicySid`

When this flag is enabled:
- Resource policies will be created with Statement IDs for service principals
- The operation will succeed as expected

When this flag is disabled:
- A warning will be emitted
- The grant operation will be dropped
- No permissions will be added

_cdk.json_

```json
{
"context": {
"@aws-cdk/aws-events:requireEventBusPolicySid": true
}
}
```
1 change: 1 addition & 0 deletions packages/aws-cdk-lib/cx-api/lib/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,7 @@ export const FLAGS: Record<string, FlagInfo> = {
compatibilityWithOldBehaviorMd: 'Disable the feature flag to add the root account principal back',
},

//////////////////////////////////////////////////////////////////////
[EVENTBUS_POLICY_SID_REQUIRED]: {
type: FlagType.BugFix,
summary: 'When enabled, grantPutEventsTo() will use resource policies with Statement IDs for service principals.',
Expand Down