From 28607961c7c849ceb4076ac59a4660234e85b6e3 Mon Sep 17 00:00:00 2001 From: gracelu0 Date: Mon, 6 Jan 2025 16:59:25 -0800 Subject: [PATCH] add introduced in v1 check --- packages/aws-cdk-lib/cx-api/FEATURE_FLAGS.md | 5 +---- packages/aws-cdk-lib/cx-api/build-tools/flag-report.ts | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/aws-cdk-lib/cx-api/FEATURE_FLAGS.md b/packages/aws-cdk-lib/cx-api/FEATURE_FLAGS.md index 703d404082431..ee309fe3c383d 100644 --- a/packages/aws-cdk-lib/cx-api/FEATURE_FLAGS.md +++ b/packages/aws-cdk-lib/cx-api/FEATURE_FLAGS.md @@ -215,10 +215,7 @@ Here is an example of a `cdk.json` file that restores v1 behavior for these flag "@aws-cdk/aws-rds:lowercaseDbIdentifier": false, "@aws-cdk/aws-apigateway:usagePlanKeyOrderInsensitiveId": false, "@aws-cdk/aws-lambda:recognizeVersionProps": false, - "@aws-cdk/aws-cloudfront:defaultSecurityPolicyTLSv1.2_2021": false, - "@aws-cdk/pipelines:reduceAssetRoleTrustScope": false, - "@aws-cdk/aws-stepfunctions-tasks:useNewS3UriParametersForBedrockInvokeModelTask": false, - "@aws-cdk/core:aspectStabilization": false + "@aws-cdk/aws-cloudfront:defaultSecurityPolicyTLSv1.2_2021": false } } ``` diff --git a/packages/aws-cdk-lib/cx-api/build-tools/flag-report.ts b/packages/aws-cdk-lib/cx-api/build-tools/flag-report.ts index 00477c8833876..117e04ec52cdb 100644 --- a/packages/aws-cdk-lib/cx-api/build-tools/flag-report.ts +++ b/packages/aws-cdk-lib/cx-api/build-tools/flag-report.ts @@ -65,7 +65,7 @@ function changedFlags() { } function migrateJson() { - const changedInV2 = flags(flag => !!flag.defaults?.v2 && !!flag.introducedIn.v2); + const changedInV2 = flags(flag => !!flag.defaults?.v2 && !!flag.introducedIn.v2 && !!flag.introducedIn.v1); const context = Object.fromEntries(changedInV2.map(([name, _]) => [name, false]));