diff --git a/packages/aws-cdk-lib/cx-api/README.md b/packages/aws-cdk-lib/cx-api/README.md index 4002764b11810..6bed3f90a9d8a 100644 --- a/packages/aws-cdk-lib/cx-api/README.md +++ b/packages/aws-cdk-lib/cx-api/README.md @@ -627,4 +627,34 @@ _cdk.json_ "@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy": true } } -``` \ No newline at end of file +``` + +* `@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 + } +} +``` diff --git a/packages/aws-cdk-lib/cx-api/lib/features.ts b/packages/aws-cdk-lib/cx-api/lib/features.ts index 4be4fe4432168..2db8c2aea579a 100644 --- a/packages/aws-cdk-lib/cx-api/lib/features.ts +++ b/packages/aws-cdk-lib/cx-api/lib/features.ts @@ -1389,6 +1389,8 @@ export const FLAGS: Record = { 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', @@ -1400,6 +1402,8 @@ export const FLAGS: Record = { 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.', @@ -1411,6 +1415,7 @@ export const FLAGS: Record = { introducedIn: { v2: '2.182.0' }, recommendedValue: true, }, + ////////////////////////////////////////////////////////////////////// [PIPELINE_REDUCE_STAGE_ROLE_TRUST_SCOPE]: { type: FlagType.ApiDefault,