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
2 changes: 1 addition & 1 deletion packages/@aws-cdk-testing/framework-integ/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@aws-sdk/client-acm": "3.632.0",
"@aws-sdk/client-rds": "3.632.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
},
"devDependencies": {
"aws-cdk-lib": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/integ-tests-alpha": "0.0.0",
"constructs": "^10.0.0",
"@aws-cdk/cdk-build-tools": "0.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-amplify-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@aws-cdk/custom-resource-handlers": "0.0.0",
"@aws-sdk/client-amplify": "3.632.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/integ-tests-alpha": "0.0.0",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-apprunner-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"aws-cdk-lib": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"constructs": "^10.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-bedrock-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"devDependencies": {
"aws-cdk-lib": "0.0.0",
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@aws-cdk/integ-tests-alpha": "0.0.0",
"@types/jest": "^29.5.14",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-cloud9-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"aws-cdk-lib": "0.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-codestar-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"aws-cdk-lib": "0.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-ec2-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/integ-tests-alpha": "^0.0.0",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-eks-v2-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/integ-tests-alpha": "0.0.0",
"@aws-cdk/pkglint": "0.0.0",
"@aws-cdk/lambda-layer-kubectl-v24": "^2.0.242",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-gamelift-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"jest": "^29.7.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-glue-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/integ-tests-alpha": "0.0.0",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-iot-actions-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"jest": "^29.7.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-iot-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"jest": "^29.7.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-iotevents-actions-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"jest": "^29.7.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-iotevents-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"jest": "^29.7.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-ivs-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"aws-cdk-lib": "0.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"jest": "^29.7.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-lambda-go-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/integ-tests-alpha": "0.0.0",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-lambda-python-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"aws-cdk-lib": "0.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-location-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"aws-cdk-lib": "0.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-msk-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"jest": "^29.7.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-neptune-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"aws-cdk-lib": "0.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-pipes-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"jest": "^29",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-pipes-enrichments-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"jest": "^29",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-pipes-sources-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"jest": "^29",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-pipes-targets-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"jest": "^29",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-redshift-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@aws-cdk/custom-resource-handlers": "0.0.0",
"@aws-sdk/client-redshift": "3.632.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-route53resolver-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"aws-cdk-lib": "0.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-s3objectlambda-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"jest": "^29.7.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-sagemaker-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"jest": "^29.7.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"aws-cdk-lib": "0.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/cx-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@
"semver": "^7.7.2"
},
"peerDependencies": {
"@aws-cdk/cloud-assembly-schema": ">=44.1.0"
"@aws-cdk/cloud-assembly-schema": ">=45.0.0"
},
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/cloud-assembly-schema": "^44.8.0",
"@aws-cdk/cloud-assembly-schema": "^45.0.0",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"@types/mock-fs": "^4.13.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/example-construct-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"devDependencies": {
"aws-cdk-lib": "0.0.0",
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^29.5.14",
"jest": "^29.7.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/integ-tests-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "^2.188.0",
"@aws-cdk/integ-runner": "^2.188.2",
"@aws-cdk/pkglint": "0.0.0",
"@aws-cdk/aws-custom-resource-sdk-adapter": "0.0.0",
"@aws-sdk/client-ec2": "3.632.0",
Expand Down
39 changes: 39 additions & 0 deletions packages/aws-cdk-lib/core/lib/private/feature-flag-report.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { ArtifactType, FeatureFlag } from '@aws-cdk/cloud-assembly-schema';
import { IConstruct } from 'constructs';
import { CloudAssemblyBuilder } from '../../../cx-api';
import * as feats from '../../../cx-api/lib/features';
import { FlagInfo } from '../../../cx-api/lib/private/flag-modeling';

/**
* Creates a FeatureFlag object based on flag information given.
*/
function parseFeatureFlagInfo(flagName: string, info: FlagInfo, root: IConstruct): FeatureFlag {
const userValue = root.node.tryGetContext(flagName) ?? undefined;

let parsedFlag: FeatureFlag = {
userValue: userValue,
recommendedValue: info.recommendedValue,
explanation: info.summary,
};

return parsedFlag;
}

/**
* Iterate through all feature flags, retrieve the user's context,
* and create a Feature Flag report.
*/
export function generateFeatureFlagReport(builder: CloudAssemblyBuilder, root: IConstruct): void {
const featureFlags: Record<string, FeatureFlag> = {};
for (const [flagName, flagInfo] of Object.entries(feats.FLAGS)) {
featureFlags[flagName] = parseFeatureFlagInfo(flagName, flagInfo, root);
}

builder.addArtifact('aws-cdk-lib/feature-flag-report', {
type: ArtifactType.FEATURE_FLAG_REPORT,
properties: {
module: 'aws-cdk-lib',
flags: featureFlags,
},
});
}
3 changes: 3 additions & 0 deletions packages/aws-cdk-lib/core/lib/private/synthesis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { Stack } from '../stack';
import { ISynthesisSession } from '../stack-synthesizers/types';
import { Stage, StageSynthesisOptions } from '../stage';
import { IPolicyValidationPluginBeta1 } from '../validation';
import { generateFeatureFlagReport } from './feature-flag-report';
import { ConstructTree } from '../validation/private/construct-tree';
import { PolicyValidationReportFormatter, NamedValidationPluginReport } from '../validation/private/report';

Expand Down Expand Up @@ -64,6 +65,8 @@ export function synthesize(root: IConstruct, options: SynthesisOptions = { }): c
// stacks to add themselves to the synthesized cloud assembly.
synthesizeTree(root, builder, options.validateOnSynthesis);

generateFeatureFlagReport(builder, root);

const assembly = builder.buildAssembly();

invokeValidationPlugins(root, builder.outdir, assembly);
Expand Down
Loading
Loading