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
32 changes: 31 additions & 1 deletion packages/aws-cdk-lib/cx-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -627,4 +627,34 @@ _cdk.json_
"@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy": true
}
}
```
```

* `@aws-cdk/aws-s3:setUniqueReplicationRoleName`

When this feature flag is enabled, a unique role name is specified only when performing cross-account replication.
When disabled, 'CDKReplicationRole' is always specified.

_cdk.json_

```json
{
"context": {
"@aws-cdk/aws-s3:setUniqueReplicationRoleName": true
}
}
```

* `@aws-cdk/pipelines:reduceStageRoleTrustScope`

When this feature flag is enabled, the root account principal will not be added to the trust policy of stage role.
When this feature flag is disabled, it will keep the root account principal in the trust policy.

_cdk.json_

```json
{
"context": {
"@aws-cdk/pipelines:reduceStageRoleTrustScope": true
}
}
```
5 changes: 5 additions & 0 deletions packages/aws-cdk-lib/cx-api/lib/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1389,6 +1389,8 @@ export const FLAGS: Record<string, FlagInfo> = {
introducedIn: { v2: '2.178.0' },
recommendedValue: true,
},

//////////////////////////////////////////////////////////////////////
[LAMBDA_CREATE_NEW_POLICIES_WITH_ADDTOROLEPOLICY]: {
type: FlagType.BugFix,
summary: 'When enabled, Lambda will create new inline policies with AddToRolePolicy instead of adding to the Default Policy Statement',
Expand All @@ -1400,6 +1402,8 @@ export const FLAGS: Record<string, FlagInfo> = {
introducedIn: { v2: '2.180.0' },
recommendedValue: true,
},

//////////////////////////////////////////////////////////////////////
[SET_UNIQUE_REPLICATION_ROLE_NAME]: {
type: FlagType.BugFix,
summary: 'When enabled, CDK will automatically generate a unique role name that is used for s3 object replication.',
Expand All @@ -1411,6 +1415,7 @@ export const FLAGS: Record<string, FlagInfo> = {
introducedIn: { v2: '2.182.0' },
recommendedValue: true,
},

//////////////////////////////////////////////////////////////////////
[PIPELINE_REDUCE_STAGE_ROLE_TRUST_SCOPE]: {
type: FlagType.ApiDefault,
Expand Down
Loading