diff --git a/packages/@aws-cdk-testing/cli-integ/bin/query-github b/packages/@aws-cdk-testing/cli-integ/bin/query-github index fbb9b1fa5f199..34c2f861aefe9 100755 --- a/packages/@aws-cdk-testing/cli-integ/bin/query-github +++ b/packages/@aws-cdk-testing/cli-integ/bin/query-github @@ -1,2 +1,2 @@ #!/usr/bin/env node -require('./query-github.js'); +require('../lib/cli/query-github.js'); diff --git a/packages/@aws-cdk-testing/cli-integ/bin/run-suite b/packages/@aws-cdk-testing/cli-integ/bin/run-suite index d4a0aacaa4a54..8b2b678b95a6b 100755 --- a/packages/@aws-cdk-testing/cli-integ/bin/run-suite +++ b/packages/@aws-cdk-testing/cli-integ/bin/run-suite @@ -1,2 +1,2 @@ #!/usr/bin/env node -require('./run-suite.js'); \ No newline at end of file +require('../lib/cli/run-suite.js'); \ No newline at end of file diff --git a/packages/@aws-cdk-testing/cli-integ/bin/stage-distribution b/packages/@aws-cdk-testing/cli-integ/bin/stage-distribution index 99b7ad3606f7b..5105f5fd7116e 100755 --- a/packages/@aws-cdk-testing/cli-integ/bin/stage-distribution +++ b/packages/@aws-cdk-testing/cli-integ/bin/stage-distribution @@ -1,2 +1,2 @@ #!/usr/bin/env node -require('./stage-distribution.js'); +require('../lib/cli/stage-distribution.js'); diff --git a/packages/@aws-cdk-testing/cli-integ/bin/test-root b/packages/@aws-cdk-testing/cli-integ/bin/test-root index d14248e4d4019..9cb8f0f2284fd 100755 --- a/packages/@aws-cdk-testing/cli-integ/bin/test-root +++ b/packages/@aws-cdk-testing/cli-integ/bin/test-root @@ -1,2 +1,2 @@ #!/usr/bin/env node -require('./test-root.js'); +require('../lib/cli/test-root.js'); diff --git a/packages/@aws-cdk-testing/cli-integ/bin/query-github.ts b/packages/@aws-cdk-testing/cli-integ/lib/cli/query-github.ts similarity index 96% rename from packages/@aws-cdk-testing/cli-integ/bin/query-github.ts rename to packages/@aws-cdk-testing/cli-integ/lib/cli/query-github.ts index 712e4108b70ca..8a8d61309658a 100644 --- a/packages/@aws-cdk-testing/cli-integ/bin/query-github.ts +++ b/packages/@aws-cdk-testing/cli-integ/lib/cli/query-github.ts @@ -1,5 +1,5 @@ import * as yargs from 'yargs'; -import { fetchPreviousVersion } from '../lib/github'; +import { fetchPreviousVersion } from '../github'; async function main() { const args = await yargs diff --git a/packages/@aws-cdk-testing/cli-integ/bin/run-suite.ts b/packages/@aws-cdk-testing/cli-integ/lib/cli/run-suite.ts similarity index 91% rename from packages/@aws-cdk-testing/cli-integ/bin/run-suite.ts rename to packages/@aws-cdk-testing/cli-integ/lib/cli/run-suite.ts index 4d32690e16f7a..405031d364d57 100644 --- a/packages/@aws-cdk-testing/cli-integ/bin/run-suite.ts +++ b/packages/@aws-cdk-testing/cli-integ/lib/cli/run-suite.ts @@ -2,10 +2,10 @@ import * as path from 'path'; import * as jest from 'jest'; import * as yargs from 'yargs'; -import { ReleasePackageSourceSetup } from '../lib/package-sources/release-source'; -import { RepoPackageSourceSetup, autoFindRoot } from '../lib/package-sources/repo-source'; -import { IPackageSourceSetup } from '../lib/package-sources/source'; -import { serializeForSubprocess } from '../lib/package-sources/subprocess'; +import { ReleasePackageSourceSetup } from '../package-sources/release-source'; +import { RepoPackageSourceSetup, autoFindRoot } from '../package-sources/repo-source'; +import { IPackageSourceSetup } from '../package-sources/source'; +import { serializeForSubprocess } from '../package-sources/subprocess'; async function main() { const args = await yargs @@ -126,7 +126,7 @@ async function main() { ...args.verbose ? ['--verbose'] : [], ...passWithNoTests ? ['--passWithNoTests'] : [], ...args['test-file'] ? [args['test-file']] : [], - ], path.resolve(__dirname, '..', 'resources', 'integ.jest.config.js')); + ], path.resolve(__dirname, '..', '..', 'resources', 'integ.jest.config.js')); } finally { await packageSource.cleanup(); diff --git a/packages/@aws-cdk-testing/cli-integ/bin/stage-distribution.ts b/packages/@aws-cdk-testing/cli-integ/lib/cli/stage-distribution.ts similarity index 94% rename from packages/@aws-cdk-testing/cli-integ/bin/stage-distribution.ts rename to packages/@aws-cdk-testing/cli-integ/lib/cli/stage-distribution.ts index 31af8c4742b99..e23127a588581 100644 --- a/packages/@aws-cdk-testing/cli-integ/bin/stage-distribution.ts +++ b/packages/@aws-cdk-testing/cli-integ/lib/cli/stage-distribution.ts @@ -3,13 +3,13 @@ import * as path from 'path'; import * as fs from 'fs-extra'; import * as glob from 'glob'; import * as yargs from 'yargs'; -import { shell } from '../lib'; -import { TestRepository } from '../lib/staging/codeartifact'; -import { uploadJavaPackages, mavenLogin } from '../lib/staging/maven'; -import { uploadNpmPackages, npmLogin } from '../lib/staging/npm'; -import { uploadDotnetPackages, nugetLogin } from '../lib/staging/nuget'; -import { uploadPythonPackages, pypiLogin } from '../lib/staging/pypi'; -import { UsageDir } from '../lib/staging/usage-dir'; +import { shell } from '..'; +import { TestRepository } from '../staging/codeartifact'; +import { uploadJavaPackages, mavenLogin } from '../staging/maven'; +import { uploadNpmPackages, npmLogin } from '../staging/npm'; +import { uploadDotnetPackages, nugetLogin } from '../staging/nuget'; +import { uploadPythonPackages, pypiLogin } from '../staging/pypi'; +import { UsageDir } from '../staging/usage-dir'; async function main() { await yargs diff --git a/packages/@aws-cdk-testing/cli-integ/bin/test-root.ts b/packages/@aws-cdk-testing/cli-integ/lib/cli/test-root.ts similarity index 57% rename from packages/@aws-cdk-testing/cli-integ/bin/test-root.ts rename to packages/@aws-cdk-testing/cli-integ/lib/cli/test-root.ts index 1a9fe0f655e58..22bd437e6a9df 100644 --- a/packages/@aws-cdk-testing/cli-integ/bin/test-root.ts +++ b/packages/@aws-cdk-testing/cli-integ/lib/cli/test-root.ts @@ -1,3 +1,3 @@ import * as path from 'path'; // eslint-disable-next-line no-console -console.log(path.resolve(__dirname, '..')); +console.log(path.resolve(__dirname, '..', '..')); diff --git a/packages/aws-cdk-lib/cx-api/FEATURE_FLAGS.md b/packages/aws-cdk-lib/cx-api/FEATURE_FLAGS.md index 040958bd0c5eb..b93b9971798df 100644 --- a/packages/aws-cdk-lib/cx-api/FEATURE_FLAGS.md +++ b/packages/aws-cdk-lib/cx-api/FEATURE_FLAGS.md @@ -93,71 +93,7 @@ The following json shows the current recommended set of flags, as `cdk init` wou ```json -{ - "context": { - "@aws-cdk/aws-lambda:recognizeLayerVersion": true, - "@aws-cdk/core:checkSecretUsage": true, - "@aws-cdk/core:target-partitions": [ - "aws", - "aws-cn" - ], - "@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true, - "@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true, - "@aws-cdk/aws-ecs:arnFormatIncludesClusterName": true, - "@aws-cdk/aws-iam:minimizePolicies": true, - "@aws-cdk/core:validateSnapshotRemovalPolicy": true, - "@aws-cdk/aws-codepipeline:crossAccountKeyAliasStackSafeResourceName": true, - "@aws-cdk/aws-s3:createDefaultLoggingPolicy": true, - "@aws-cdk/aws-sns-subscriptions:restrictSqsDescryption": true, - "@aws-cdk/aws-apigateway:disableCloudWatchRole": true, - "@aws-cdk/core:enablePartitionLiterals": true, - "@aws-cdk/aws-events:eventsTargetQueueSameAccount": true, - "@aws-cdk/aws-ecs:disableExplicitDeploymentControllerForCircuitBreaker": true, - "@aws-cdk/aws-iam:importedRoleStackSafeDefaultPolicyName": true, - "@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy": true, - "@aws-cdk/aws-route53-patters:useCertificate": true, - "@aws-cdk/customresources:installLatestAwsSdkDefault": false, - "@aws-cdk/aws-rds:databaseProxyUniqueResourceName": true, - "@aws-cdk/aws-codedeploy:removeAlarmsFromDeploymentGroup": true, - "@aws-cdk/aws-apigateway:authorizerChangeDeploymentLogicalId": true, - "@aws-cdk/aws-ec2:launchTemplateDefaultUserData": true, - "@aws-cdk/aws-secretsmanager:useAttachedSecretResourcePolicyForSecretTargetAttachments": true, - "@aws-cdk/aws-redshift:columnId": true, - "@aws-cdk/aws-stepfunctions-tasks:enableEmrServicePolicyV2": true, - "@aws-cdk/aws-ec2:restrictDefaultSecurityGroup": true, - "@aws-cdk/aws-apigateway:requestValidatorUniqueId": true, - "@aws-cdk/aws-kms:aliasNameRef": true, - "@aws-cdk/aws-autoscaling:generateLaunchTemplateInsteadOfLaunchConfig": true, - "@aws-cdk/core:includePrefixInUniqueNameGeneration": true, - "@aws-cdk/aws-efs:denyAnonymousAccess": true, - "@aws-cdk/aws-opensearchservice:enableOpensearchMultiAzWithStandby": true, - "@aws-cdk/aws-lambda-nodejs:useLatestRuntimeVersion": true, - "@aws-cdk/aws-efs:mountTargetOrderInsensitiveLogicalId": true, - "@aws-cdk/aws-rds:auroraClusterChangeScopeOfInstanceParameterGroupWithEachParameters": true, - "@aws-cdk/aws-appsync:useArnForSourceApiAssociationIdentifier": true, - "@aws-cdk/aws-rds:preventRenderingDeprecatedCredentials": true, - "@aws-cdk/aws-codepipeline-actions:useNewDefaultBranchForCodeCommitSource": true, - "@aws-cdk/aws-cloudwatch-actions:changeLambdaPermissionLogicalIdForLambdaAction": true, - "@aws-cdk/aws-codepipeline:crossAccountKeysDefaultValueToFalse": true, - "@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2": true, - "@aws-cdk/aws-kms:reduceCrossAccountRegionPolicyScope": true, - "@aws-cdk/aws-eks:nodegroupNameAttribute": true, - "@aws-cdk/aws-ec2:ebsDefaultGp3Volume": true, - "@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm": true, - "@aws-cdk/custom-resources:logApiResponseDataPropertyTrueDefault": false, - "@aws-cdk/aws-s3:keepNotificationInImportedBucket": false, - "@aws-cdk/aws-ecs:reduceEc2FargateCloudWatchPermissions": true, - "@aws-cdk/aws-dynamodb:resourcePolicyPerReplica": true, - "@aws-cdk/aws-ec2:ec2SumTImeoutEnabled": true, - "@aws-cdk/aws-appsync:appSyncGraphQLAPIScopeLambdaPermission": true, - "@aws-cdk/aws-rds:setCorrectValueForDatabaseInstanceReadReplicaInstanceResourceId": true, - "@aws-cdk/core:cfnIncludeRejectComplexResourceUpdateCreatePolicyIntrinsics": true, - "@aws-cdk/aws-lambda-nodejs:sdkV3ExcludeSmithyPackages": true, - "@aws-cdk/aws-stepfunctions-tasks:fixRunEcsTaskPolicy": true, - "@aws-cdk/aws-ec2:bastionHostUseAmazonLinux2023ByDefault": true, - "@aws-cdk/aws-route53-targets:userPoolDomainNameMethodWithoutCustomResource": true - } -} +{} ```