From 2e5e83cd91e20472777b288f323e42ede848235b Mon Sep 17 00:00:00 2001 From: Michael Kaiser Date: Wed, 26 Mar 2025 12:03:03 -0500 Subject: [PATCH 1/5] Update package versions --- csharp/package.json | 2 +- go/package.json | 2 +- java/package.json | 2 +- python/package.json | 2 +- .../amazon-mq-rabbitmq-lambda/package.json | 2 +- typescript/amplify-console-app/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../application-load-balancer/package.json | 2 +- .../appsync-graphql-dynamodb/package.json | 2 +- .../appsync-graphql-eventbridge/package.json | 2 +- typescript/appsync-graphql-http/package.json | 2 +- .../package.json | 12 ++++---- typescript/aspects/package.json | 2 +- .../aws-codepipeline-ecs-lambda/package.json | 2 +- .../aws-transfer-sftp-server/package.json | 2 +- typescript/backup-s3/package.json | 2 +- typescript/cdkpipeline-ecs/package.json | 2 +- typescript/classic-load-balancer/package.json | 2 +- typescript/cloudfront-functions/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../codepipeline-build-deploy/package.json | 2 +- .../codepipeline-glue-deploy/package.json | 2 +- .../codewhisperer-cloudwatch/package.json | 2 +- typescript/cognito-api-lambda/package.json | 2 +- typescript/connect-cdk/package.json | 2 +- typescript/custom-logical-names/package.json | 2 +- .../custom-resource-provider/package.json | 2 +- typescript/custom-resource/package.json | 2 +- typescript/ddb-stream-lambda-sns/package.json | 2 +- .../ddb/global-table-with-cmk/package.json | 2 +- typescript/ec2-instance/package.json | 28 +++++++++++++------ typescript/ec2-ssm-local-zone/package.json | 2 +- typescript/ecs/cluster/package.json | 2 +- .../cross-stack-load-balancer/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../ecs/ecs-service-with-logging/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../ecs/fargate-service-with-efs/package.json | 2 +- .../package.json | 2 +- .../fargate-service-with-logging/package.json | 2 +- typescript/eks/cluster/package.json | 2 +- .../elasticbeanstalk-bg-pipeline/package.json | 2 +- .../elasticbeanstalk-environment/package.json | 2 +- typescript/eventbridge-lambda/package.json | 2 +- typescript/fsx-ad/package.json | 2 +- typescript/http-proxy-apigateway/package.json | 2 +- typescript/imagebuilder/package.json | 2 +- typescript/lambda-api-ci/package.json | 2 +- .../lambda-cloudwatch-dashboard/package.json | 2 +- typescript/lambda-cron/package.json | 2 +- typescript/lambda-layer/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- typescript/lexbot/package.json | 2 +- typescript/my-widget-service/package.json | 2 +- .../opensearch/cwlogs_ingestion/package.json | 2 +- .../opensearch/os_vpc_provision/package.json | 2 +- typescript/quicksight/package.json | 2 +- typescript/r53-resolver/package.json | 2 +- typescript/rds/aurora/package.json | 2 +- typescript/rds/mysql/package.json | 2 +- typescript/rds/oracle/package.json | 2 +- .../package.json | 2 +- typescript/resource-overrides/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- typescript/s3-object-lambda/package.json | 2 +- typescript/s3-sns-lambda-chain/package.json | 2 +- .../secrets-manager-rotation/package.json | 2 +- .../portfolio-with-ec2-product/package.json | 2 +- typescript/static-site-basic/package.json | 2 +- typescript/static-site/package.json | 2 +- .../package.json | 2 +- .../stepfunctions-job-poller/package.json | 2 +- typescript/waf/package.json | 2 +- 84 files changed, 107 insertions(+), 97 deletions(-) diff --git a/csharp/package.json b/csharp/package.json index a05bad9b93..e8f87b0bc4 100644 --- a/csharp/package.json +++ b/csharp/package.json @@ -1,5 +1,5 @@ { "devDependencies": { - "aws-cdk": "^2.0.0" + "aws-cdk": "2.1006.0" } } diff --git a/go/package.json b/go/package.json index a05bad9b93..e8f87b0bc4 100644 --- a/go/package.json +++ b/go/package.json @@ -1,5 +1,5 @@ { "devDependencies": { - "aws-cdk": "^2.0.0" + "aws-cdk": "2.1006.0" } } diff --git a/java/package.json b/java/package.json index a05bad9b93..e8f87b0bc4 100644 --- a/java/package.json +++ b/java/package.json @@ -1,5 +1,5 @@ { "devDependencies": { - "aws-cdk": "^2.0.0" + "aws-cdk": "2.1006.0" } } diff --git a/python/package.json b/python/package.json index a05bad9b93..e8f87b0bc4 100644 --- a/python/package.json +++ b/python/package.json @@ -1,5 +1,5 @@ { "devDependencies": { - "aws-cdk": "^2.0.0" + "aws-cdk": "2.1006.0" } } diff --git a/typescript/amazon-mq-rabbitmq-lambda/package.json b/typescript/amazon-mq-rabbitmq-lambda/package.json index d9b7741a6b..b299d3872f 100644 --- a/typescript/amazon-mq-rabbitmq-lambda/package.json +++ b/typescript/amazon-mq-rabbitmq-lambda/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", diff --git a/typescript/amplify-console-app/package.json b/typescript/amplify-console-app/package.json index 11203c0b86..c8c163baaa 100644 --- a/typescript/amplify-console-app/package.json +++ b/typescript/amplify-console-app/package.json @@ -15,7 +15,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/api-cors-lambda-crud-dynamodb/package.json b/typescript/api-cors-lambda-crud-dynamodb/package.json index 9a21e6edda..d9cb674e34 100644 --- a/typescript/api-cors-lambda-crud-dynamodb/package.json +++ b/typescript/api-cors-lambda-crud-dynamodb/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "esbuild": "*", "typescript": "~5.6.3" }, diff --git a/typescript/api-gateway-async-lambda-invocation/package.json b/typescript/api-gateway-async-lambda-invocation/package.json index 93fe31608d..bd81e9ac0c 100644 --- a/typescript/api-gateway-async-lambda-invocation/package.json +++ b/typescript/api-gateway-async-lambda-invocation/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, diff --git a/typescript/api-gateway-lambda-token-authorizer/package.json b/typescript/api-gateway-lambda-token-authorizer/package.json index 1674e6e5ef..12d77a9ccf 100644 --- a/typescript/api-gateway-lambda-token-authorizer/package.json +++ b/typescript/api-gateway-lambda-token-authorizer/package.json @@ -15,7 +15,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", diff --git a/typescript/api-gateway-parallel-step-functions/package.json b/typescript/api-gateway-parallel-step-functions/package.json index 660fe08d47..944af99f75 100644 --- a/typescript/api-gateway-parallel-step-functions/package.json +++ b/typescript/api-gateway-parallel-step-functions/package.json @@ -19,7 +19,7 @@ }, "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, diff --git a/typescript/api-websocket-lambda-dynamodb/package.json b/typescript/api-websocket-lambda-dynamodb/package.json index 54033a7c27..169aef622a 100644 --- a/typescript/api-websocket-lambda-dynamodb/package.json +++ b/typescript/api-websocket-lambda-dynamodb/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/application-load-balancer/package.json b/typescript/application-load-balancer/package.json index a2e717adbb..3b504bfdc3 100644 --- a/typescript/application-load-balancer/package.json +++ b/typescript/application-load-balancer/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/appsync-graphql-dynamodb/package.json b/typescript/appsync-graphql-dynamodb/package.json index 34494a7e88..fc204d8f1d 100644 --- a/typescript/appsync-graphql-dynamodb/package.json +++ b/typescript/appsync-graphql-dynamodb/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", diff --git a/typescript/appsync-graphql-eventbridge/package.json b/typescript/appsync-graphql-eventbridge/package.json index 766dc439ab..e1260407fe 100644 --- a/typescript/appsync-graphql-eventbridge/package.json +++ b/typescript/appsync-graphql-eventbridge/package.json @@ -14,7 +14,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3", "ts-node": "^10.9.2" }, diff --git a/typescript/appsync-graphql-http/package.json b/typescript/appsync-graphql-http/package.json index fd574aae4c..2503b4fb23 100644 --- a/typescript/appsync-graphql-http/package.json +++ b/typescript/appsync-graphql-http/package.json @@ -17,7 +17,7 @@ "devDependencies": { "@aws-appsync/utils": "^1.5.0", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/appsync-graphql-typescript-resolver/package.json b/typescript/appsync-graphql-typescript-resolver/package.json index ef4ca29035..50cc802897 100644 --- a/typescript/appsync-graphql-typescript-resolver/package.json +++ b/typescript/appsync-graphql-typescript-resolver/package.json @@ -14,16 +14,16 @@ }, "devDependencies": { "@aws-appsync/utils": "^1.2.5", - "@types/jest": "^29.5.12", - "@types/node": "20.11.19", + "@types/jest": "^29.5.14", + "@types/node": "22.7.9", "jest": "^29.7.0", - "ts-jest": "^29.1.2", - "aws-cdk": "2.133.0", + "ts-jest": "^29.2.5", + "aws-cdk": "2.1006.0", "ts-node": "^10.9.2", - "typescript": "~5.3.3" + "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.184.0", + "aws-cdk-lib": "2.185.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/aspects/package.json b/typescript/aspects/package.json index e08bf72808..cbfd2f68da 100644 --- a/typescript/aspects/package.json +++ b/typescript/aspects/package.json @@ -15,7 +15,7 @@ "@types/jest": "^29.5.14", "@types/node": "22.7.9", "@typescript-eslint/eslint-plugin": "^6.11.0", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "eslint": "^8.54.0", "eslint-config-standard-with-typescript": "^40.0.0", "eslint-plugin-import": "^2.29.0", diff --git a/typescript/aws-codepipeline-ecs-lambda/package.json b/typescript/aws-codepipeline-ecs-lambda/package.json index 02255cd3a7..dea13ab604 100644 --- a/typescript/aws-codepipeline-ecs-lambda/package.json +++ b/typescript/aws-codepipeline-ecs-lambda/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@types/aws-lambda": "^8.10.140", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, diff --git a/typescript/aws-transfer-sftp-server/package.json b/typescript/aws-transfer-sftp-server/package.json index 94c4a3ee79..6c8de932c7 100644 --- a/typescript/aws-transfer-sftp-server/package.json +++ b/typescript/aws-transfer-sftp-server/package.json @@ -21,7 +21,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", diff --git a/typescript/backup-s3/package.json b/typescript/backup-s3/package.json index 74caa81be5..8224477156 100644 --- a/typescript/backup-s3/package.json +++ b/typescript/backup-s3/package.json @@ -14,7 +14,7 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, diff --git a/typescript/cdkpipeline-ecs/package.json b/typescript/cdkpipeline-ecs/package.json index 5ac127f793..37fc6418bf 100644 --- a/typescript/cdkpipeline-ecs/package.json +++ b/typescript/cdkpipeline-ecs/package.json @@ -14,7 +14,7 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, diff --git a/typescript/classic-load-balancer/package.json b/typescript/classic-load-balancer/package.json index a31a32f065..7291e8652d 100644 --- a/typescript/classic-load-balancer/package.json +++ b/typescript/classic-load-balancer/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/cloudfront-functions/package.json b/typescript/cloudfront-functions/package.json index 306f0023d3..8cda62a579 100644 --- a/typescript/cloudfront-functions/package.json +++ b/typescript/cloudfront-functions/package.json @@ -15,7 +15,7 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, diff --git a/typescript/cloudwatch/evidently-client-side-evaluation-ecs/package.json b/typescript/cloudwatch/evidently-client-side-evaluation-ecs/package.json index a7e98f5585..9566010a7a 100644 --- a/typescript/cloudwatch/evidently-client-side-evaluation-ecs/package.json +++ b/typescript/cloudwatch/evidently-client-side-evaluation-ecs/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@types/express": "^4.17.15", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/cloudwatch/evidently-client-side-evaluation-lambda/package.json b/typescript/cloudwatch/evidently-client-side-evaluation-lambda/package.json index b4eba4a708..1152fb98ed 100644 --- a/typescript/cloudwatch/evidently-client-side-evaluation-lambda/package.json +++ b/typescript/cloudwatch/evidently-client-side-evaluation-lambda/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/codepipeline-build-deploy/package.json b/typescript/codepipeline-build-deploy/package.json index 9793f5c335..7b6fddb931 100644 --- a/typescript/codepipeline-build-deploy/package.json +++ b/typescript/codepipeline-build-deploy/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", diff --git a/typescript/codepipeline-glue-deploy/package.json b/typescript/codepipeline-glue-deploy/package.json index 25b1182516..49ac356262 100644 --- a/typescript/codepipeline-glue-deploy/package.json +++ b/typescript/codepipeline-glue-deploy/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, diff --git a/typescript/codewhisperer-cloudwatch/package.json b/typescript/codewhisperer-cloudwatch/package.json index ad1604a320..baffbf89df 100644 --- a/typescript/codewhisperer-cloudwatch/package.json +++ b/typescript/codewhisperer-cloudwatch/package.json @@ -15,7 +15,7 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, diff --git a/typescript/cognito-api-lambda/package.json b/typescript/cognito-api-lambda/package.json index 07628b8692..679f6fa926 100644 --- a/typescript/cognito-api-lambda/package.json +++ b/typescript/cognito-api-lambda/package.json @@ -14,7 +14,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/connect-cdk/package.json b/typescript/connect-cdk/package.json index fa495b0705..d2fd7ca1e9 100644 --- a/typescript/connect-cdk/package.json +++ b/typescript/connect-cdk/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", diff --git a/typescript/custom-logical-names/package.json b/typescript/custom-logical-names/package.json index 188945ff57..95f7fa90aa 100644 --- a/typescript/custom-logical-names/package.json +++ b/typescript/custom-logical-names/package.json @@ -10,7 +10,7 @@ "cdk": "cdk" }, "devDependencies": { - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, diff --git a/typescript/custom-resource-provider/package.json b/typescript/custom-resource-provider/package.json index 39adb022a8..8c1f8919ae 100644 --- a/typescript/custom-resource-provider/package.json +++ b/typescript/custom-resource-provider/package.json @@ -15,7 +15,7 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, diff --git a/typescript/custom-resource/package.json b/typescript/custom-resource/package.json index 2d2804f725..9580df5114 100644 --- a/typescript/custom-resource/package.json +++ b/typescript/custom-resource/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/ddb-stream-lambda-sns/package.json b/typescript/ddb-stream-lambda-sns/package.json index 5594f7dc0f..65ed0d5a1c 100644 --- a/typescript/ddb-stream-lambda-sns/package.json +++ b/typescript/ddb-stream-lambda-sns/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", diff --git a/typescript/ddb/global-table-with-cmk/package.json b/typescript/ddb/global-table-with-cmk/package.json index e71e23611d..b2a3c7d1bb 100644 --- a/typescript/ddb/global-table-with-cmk/package.json +++ b/typescript/ddb/global-table-with-cmk/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", diff --git a/typescript/ec2-instance/package.json b/typescript/ec2-instance/package.json index 188d49bf15..cb3529572e 100644 --- a/typescript/ec2-instance/package.json +++ b/typescript/ec2-instance/package.json @@ -11,17 +11,27 @@ "cdk": "cdk" }, "devDependencies": { - "@types/jest": "^29.5.3", - "@types/node": "^16", - "aws-cdk": "2.1010.0", - "jest": "^29.6.2", - "ts-jest": "^29.1.1", - "ts-node": "^10.9.1", - "typescript": "^5.1.6" + "@types/jest": "^29.5.14", + "@types/node": "22.7.9", + "@typescript-eslint/eslint-plugin": "^5", + "@typescript-eslint/parser": "^5", + "aws-cdk": "2.1006.0", + "esbuild": "^0.18.17", + "eslint": "^8", + "eslint-import-resolver-node": "^0.3.7", + "eslint-import-resolver-typescript": "^3.5.5", + "eslint-plugin-import": "^2.28.0", + "jest": "^29.7.0", + "jest-junit": "^15", + "npm-check-updates": "^16", + "projen": "^0.71.158", + "ts-jest": "^29.2.5", + "ts-node": "^10.9.2", + "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.189.0", - "constructs": "^10.0.5", + "aws-cdk-lib": "2.185.0", + "constructs": "^10.0.0", "dotenv": "^16.3.1" }, "license": "MIT-0" diff --git a/typescript/ec2-ssm-local-zone/package.json b/typescript/ec2-ssm-local-zone/package.json index 9e121714ce..5800a73cc8 100644 --- a/typescript/ec2-ssm-local-zone/package.json +++ b/typescript/ec2-ssm-local-zone/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", diff --git a/typescript/ecs/cluster/package.json b/typescript/ecs/cluster/package.json index 2c3ab0c0e4..73f7ec1315 100644 --- a/typescript/ecs/cluster/package.json +++ b/typescript/ecs/cluster/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/ecs/cross-stack-load-balancer/package.json b/typescript/ecs/cross-stack-load-balancer/package.json index 6df0150d81..8694ed8aef 100644 --- a/typescript/ecs/cross-stack-load-balancer/package.json +++ b/typescript/ecs/cross-stack-load-balancer/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/ecs/ecs-network-load-balanced-service/package.json b/typescript/ecs/ecs-network-load-balanced-service/package.json index cb20b543ae..b581b86096 100644 --- a/typescript/ecs/ecs-network-load-balanced-service/package.json +++ b/typescript/ecs/ecs-network-load-balanced-service/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/ecs/ecs-service-with-advanced-alb-config/package.json b/typescript/ecs/ecs-service-with-advanced-alb-config/package.json index c3ca3dcd14..b28efc37da 100644 --- a/typescript/ecs/ecs-service-with-advanced-alb-config/package.json +++ b/typescript/ecs/ecs-service-with-advanced-alb-config/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/ecs/ecs-service-with-logging/package.json b/typescript/ecs/ecs-service-with-logging/package.json index b14d076d6b..7b5a012d90 100644 --- a/typescript/ecs/ecs-service-with-logging/package.json +++ b/typescript/ecs/ecs-service-with-logging/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/ecs/ecs-service-with-task-networking/package.json b/typescript/ecs/ecs-service-with-task-networking/package.json index 20896e5402..afa1d54c54 100644 --- a/typescript/ecs/ecs-service-with-task-networking/package.json +++ b/typescript/ecs/ecs-service-with-task-networking/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/ecs/ecs-service-with-task-placement/package.json b/typescript/ecs/ecs-service-with-task-placement/package.json index c3ca3dcd14..b28efc37da 100644 --- a/typescript/ecs/ecs-service-with-task-placement/package.json +++ b/typescript/ecs/ecs-service-with-task-placement/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/ecs/fargate-application-load-balanced-service/package.json b/typescript/ecs/fargate-application-load-balanced-service/package.json index da722fd43f..279f837c6b 100644 --- a/typescript/ecs/fargate-application-load-balanced-service/package.json +++ b/typescript/ecs/fargate-application-load-balanced-service/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/ecs/fargate-service-with-auto-scaling/package.json b/typescript/ecs/fargate-service-with-auto-scaling/package.json index 4cbb2aa423..70d6261b7c 100644 --- a/typescript/ecs/fargate-service-with-auto-scaling/package.json +++ b/typescript/ecs/fargate-service-with-auto-scaling/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/ecs/fargate-service-with-efs/package.json b/typescript/ecs/fargate-service-with-efs/package.json index 15f625e3e2..e02008ce8c 100644 --- a/typescript/ecs/fargate-service-with-efs/package.json +++ b/typescript/ecs/fargate-service-with-efs/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/ecs/fargate-service-with-local-image/package.json b/typescript/ecs/fargate-service-with-local-image/package.json index 73cc130109..894451b354 100644 --- a/typescript/ecs/fargate-service-with-local-image/package.json +++ b/typescript/ecs/fargate-service-with-local-image/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/ecs/fargate-service-with-logging/package.json b/typescript/ecs/fargate-service-with-logging/package.json index 32f2bc842f..487b03f41c 100644 --- a/typescript/ecs/fargate-service-with-logging/package.json +++ b/typescript/ecs/fargate-service-with-logging/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/eks/cluster/package.json b/typescript/eks/cluster/package.json index 3766439c9d..bfcb0fdf23 100644 --- a/typescript/eks/cluster/package.json +++ b/typescript/eks/cluster/package.json @@ -17,7 +17,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", diff --git a/typescript/elasticbeanstalk/elasticbeanstalk-bg-pipeline/package.json b/typescript/elasticbeanstalk/elasticbeanstalk-bg-pipeline/package.json index 0ac767f4c0..f1b3b9c679 100644 --- a/typescript/elasticbeanstalk/elasticbeanstalk-bg-pipeline/package.json +++ b/typescript/elasticbeanstalk/elasticbeanstalk-bg-pipeline/package.json @@ -17,7 +17,7 @@ "devDependencies": { "@types/node": "22.7.9", "typescript": "~5.6.3", - "aws-cdk": "2.1004.0" + "aws-cdk": "2.1006.0" }, "dependencies": { "aws-cdk-lib": "2.185.0", diff --git a/typescript/elasticbeanstalk/elasticbeanstalk-environment/package.json b/typescript/elasticbeanstalk/elasticbeanstalk-environment/package.json index f7dc5feedf..2e7e58e55a 100644 --- a/typescript/elasticbeanstalk/elasticbeanstalk-environment/package.json +++ b/typescript/elasticbeanstalk/elasticbeanstalk-environment/package.json @@ -17,7 +17,7 @@ "devDependencies": { "@types/node": "22.7.9", "typescript": "~5.6.3", - "aws-cdk": "2.1004.0" + "aws-cdk": "2.1006.0" }, "dependencies": { "aws-cdk-lib": "2.188.0", diff --git a/typescript/eventbridge-lambda/package.json b/typescript/eventbridge-lambda/package.json index 6734506dd8..7d108af873 100644 --- a/typescript/eventbridge-lambda/package.json +++ b/typescript/eventbridge-lambda/package.json @@ -17,7 +17,7 @@ "devDependencies": { "@types/node": "22.7.9", "@types/jest": "^29.5.14", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "jest": "^29.7.0", "typescript": "~5.6.3" }, diff --git a/typescript/fsx-ad/package.json b/typescript/fsx-ad/package.json index e5bb693a07..c72b5d5720 100644 --- a/typescript/fsx-ad/package.json +++ b/typescript/fsx-ad/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/http-proxy-apigateway/package.json b/typescript/http-proxy-apigateway/package.json index c0ba73dcc5..301e1c7918 100644 --- a/typescript/http-proxy-apigateway/package.json +++ b/typescript/http-proxy-apigateway/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/imagebuilder/package.json b/typescript/imagebuilder/package.json index 0d47b02139..f59c0d13bb 100644 --- a/typescript/imagebuilder/package.json +++ b/typescript/imagebuilder/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, diff --git a/typescript/lambda-api-ci/package.json b/typescript/lambda-api-ci/package.json index c686434fc4..f8b874c226 100644 --- a/typescript/lambda-api-ci/package.json +++ b/typescript/lambda-api-ci/package.json @@ -12,7 +12,7 @@ "prettier": "prettier --write '**/{bin,lib,src,tst}/*.ts'" }, "devDependencies": { - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "@types/node": "22.7.9", "ts-node": "^10.9.2", "typescript": "~5.6.3", diff --git a/typescript/lambda-cloudwatch-dashboard/package.json b/typescript/lambda-cloudwatch-dashboard/package.json index 3688c2987d..01d9320ca5 100644 --- a/typescript/lambda-cloudwatch-dashboard/package.json +++ b/typescript/lambda-cloudwatch-dashboard/package.json @@ -15,7 +15,7 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, diff --git a/typescript/lambda-cron/package.json b/typescript/lambda-cron/package.json index f4407313b2..c6d676ba7a 100644 --- a/typescript/lambda-cron/package.json +++ b/typescript/lambda-cron/package.json @@ -18,7 +18,7 @@ "devDependencies": { "@types/node": "22.7.9", "@types/jest": "^29.5.14", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "jest": "^29.7.0", "typescript": "~5.6.3" }, diff --git a/typescript/lambda-layer/package.json b/typescript/lambda-layer/package.json index b755432d40..94b41317e4 100644 --- a/typescript/lambda-layer/package.json +++ b/typescript/lambda-layer/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@aws-cdk/assert": "*", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, diff --git a/typescript/lambda-manage-s3-event-notification/package.json b/typescript/lambda-manage-s3-event-notification/package.json index 54b22abfde..7ae330aae1 100644 --- a/typescript/lambda-manage-s3-event-notification/package.json +++ b/typescript/lambda-manage-s3-event-notification/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@aws-cdk/assert": "*", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, diff --git a/typescript/lambda-provisioned-concurrency-autoscaling/package.json b/typescript/lambda-provisioned-concurrency-autoscaling/package.json index 02984c58a9..539394de1a 100644 --- a/typescript/lambda-provisioned-concurrency-autoscaling/package.json +++ b/typescript/lambda-provisioned-concurrency-autoscaling/package.json @@ -18,7 +18,7 @@ "devDependencies": { "@aws-cdk/assert": "*", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "ts-node": "^10.9.2", "@types/jest": "^29.5.14", "jest": "^29.7.0", diff --git a/typescript/lexbot/package.json b/typescript/lexbot/package.json index 52864a787e..6ae53ad394 100644 --- a/typescript/lexbot/package.json +++ b/typescript/lexbot/package.json @@ -15,7 +15,7 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, diff --git a/typescript/my-widget-service/package.json b/typescript/my-widget-service/package.json index d7976c6e0b..8e7081495b 100644 --- a/typescript/my-widget-service/package.json +++ b/typescript/my-widget-service/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/opensearch/cwlogs_ingestion/package.json b/typescript/opensearch/cwlogs_ingestion/package.json index 856a4fd5f9..ffd3ad825d 100644 --- a/typescript/opensearch/cwlogs_ingestion/package.json +++ b/typescript/opensearch/cwlogs_ingestion/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "aws-cdk-lib": "^2.165.0", "constructs": "^10.2.43", "globals": "^15.6.0", diff --git a/typescript/opensearch/os_vpc_provision/package.json b/typescript/opensearch/os_vpc_provision/package.json index 66c218d4c8..b813dcc10c 100644 --- a/typescript/opensearch/os_vpc_provision/package.json +++ b/typescript/opensearch/os_vpc_provision/package.json @@ -14,7 +14,7 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "ts-node": "^10.9.2", "typescript": "~5.6.3", "constructs": "^10.2.43" diff --git a/typescript/quicksight/package.json b/typescript/quicksight/package.json index 9060d31678..0496ae82a6 100644 --- a/typescript/quicksight/package.json +++ b/typescript/quicksight/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", diff --git a/typescript/r53-resolver/package.json b/typescript/r53-resolver/package.json index dc7a76c8e4..4668148699 100644 --- a/typescript/r53-resolver/package.json +++ b/typescript/r53-resolver/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", diff --git a/typescript/rds/aurora/package.json b/typescript/rds/aurora/package.json index 629998b523..0a2d72ab33 100644 --- a/typescript/rds/aurora/package.json +++ b/typescript/rds/aurora/package.json @@ -13,7 +13,7 @@ "@types/jest": "^29.5.14", "@types/node": "22.7.9", "jest": "^29.7.0", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "~5.6.3" diff --git a/typescript/rds/mysql/package.json b/typescript/rds/mysql/package.json index 03c4a245ce..c53209b013 100644 --- a/typescript/rds/mysql/package.json +++ b/typescript/rds/mysql/package.json @@ -15,7 +15,7 @@ "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "esModuleInterop": true, diff --git a/typescript/rds/oracle/package.json b/typescript/rds/oracle/package.json index a5cef61ba8..2c922f786a 100644 --- a/typescript/rds/oracle/package.json +++ b/typescript/rds/oracle/package.json @@ -13,7 +13,7 @@ "@types/jest": "^29.5.14", "@types/node": "22.7.9", "jest": "^29.7.0", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "~5.6.3" diff --git a/typescript/rekognition-lambda-s3-trigger/package.json b/typescript/rekognition-lambda-s3-trigger/package.json index 8acceb2e56..3c5852cdb4 100644 --- a/typescript/rekognition-lambda-s3-trigger/package.json +++ b/typescript/rekognition-lambda-s3-trigger/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, diff --git a/typescript/resource-overrides/package.json b/typescript/resource-overrides/package.json index ec5f6d8a6f..2f65231a36 100644 --- a/typescript/resource-overrides/package.json +++ b/typescript/resource-overrides/package.json @@ -15,7 +15,7 @@ }, "license": "Apache-2.0", "devDependencies": { - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "@types/node": "22.7.9", "typescript": "~5.6.3" }, diff --git a/typescript/route53-resolver-dns-firewall/package.json b/typescript/route53-resolver-dns-firewall/package.json index a3ea5e85c6..32d63c3260 100644 --- a/typescript/route53-resolver-dns-firewall/package.json +++ b/typescript/route53-resolver-dns-firewall/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/s3-kms-cross-account-replication/package.json b/typescript/s3-kms-cross-account-replication/package.json index b0680e9e65..6478c432c6 100644 --- a/typescript/s3-kms-cross-account-replication/package.json +++ b/typescript/s3-kms-cross-account-replication/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "cdk-nag": "^2.0.0", "jest": "^29.7.0", "prettier": "2.6.2", diff --git a/typescript/s3-object-lambda/package.json b/typescript/s3-object-lambda/package.json index d4dd3496be..9ccdb48915 100644 --- a/typescript/s3-object-lambda/package.json +++ b/typescript/s3-object-lambda/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, diff --git a/typescript/s3-sns-lambda-chain/package.json b/typescript/s3-sns-lambda-chain/package.json index 026089cc3f..76bb4c94bb 100644 --- a/typescript/s3-sns-lambda-chain/package.json +++ b/typescript/s3-sns-lambda-chain/package.json @@ -14,7 +14,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", diff --git a/typescript/secrets-manager-rotation/package.json b/typescript/secrets-manager-rotation/package.json index 2dce21919f..8551553eea 100644 --- a/typescript/secrets-manager-rotation/package.json +++ b/typescript/secrets-manager-rotation/package.json @@ -17,7 +17,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", diff --git a/typescript/servicecatalog/portfolio-with-ec2-product/package.json b/typescript/servicecatalog/portfolio-with-ec2-product/package.json index 51e3fc2438..1e9ff3203a 100644 --- a/typescript/servicecatalog/portfolio-with-ec2-product/package.json +++ b/typescript/servicecatalog/portfolio-with-ec2-product/package.json @@ -14,7 +14,7 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, diff --git a/typescript/static-site-basic/package.json b/typescript/static-site-basic/package.json index 8c8cf37368..c0581ea500 100644 --- a/typescript/static-site-basic/package.json +++ b/typescript/static-site-basic/package.json @@ -15,7 +15,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/static-site/package.json b/typescript/static-site/package.json index 8ceb6c6ed7..1200e02443 100644 --- a/typescript/static-site/package.json +++ b/typescript/static-site/package.json @@ -15,7 +15,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/stepfunction-external-definition/package.json b/typescript/stepfunction-external-definition/package.json index e4a021602e..f83ff9c322 100644 --- a/typescript/stepfunction-external-definition/package.json +++ b/typescript/stepfunction-external-definition/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, diff --git a/typescript/stepfunctions-job-poller/package.json b/typescript/stepfunctions-job-poller/package.json index 4899fff8a8..de88759163 100644 --- a/typescript/stepfunctions-job-poller/package.json +++ b/typescript/stepfunctions-job-poller/package.json @@ -16,7 +16,7 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { diff --git a/typescript/waf/package.json b/typescript/waf/package.json index 41f456408b..df10dc2d54 100644 --- a/typescript/waf/package.json +++ b/typescript/waf/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1006.0", "typescript": "~5.6.3" }, "dependencies": { From 90ed573a0a370085be5f578b67aa2efc3a225b57 Mon Sep 17 00:00:00 2001 From: Michael Kaiser Date: Wed, 26 Mar 2025 12:28:32 -0500 Subject: [PATCH 2/5] Cleaup and build --- scripts/build-all-typescript.js | 461 ++++++++++++++++++ scripts/update-cdk-packages.ts | 248 ++++++++++ scripts/update-packagejson/.eslintrc.json | 22 + scripts/update-packagejson/.gitignore | 33 ++ scripts/update-packagejson/README.md | 51 ++ scripts/update-packagejson/jest.config.js | 10 + scripts/update-packagejson/package.json | 43 ++ scripts/update-packagejson/src/index.ts | 41 ++ .../src/update-cdk-packages.ts | 255 ++++++++++ scripts/update-packagejson/tsconfig.json | 23 + .../update-packagejson/update-cdk-packages.ts | 248 ++++++++++ 11 files changed, 1435 insertions(+) create mode 100755 scripts/build-all-typescript.js create mode 100644 scripts/update-cdk-packages.ts create mode 100644 scripts/update-packagejson/.eslintrc.json create mode 100644 scripts/update-packagejson/.gitignore create mode 100644 scripts/update-packagejson/README.md create mode 100644 scripts/update-packagejson/jest.config.js create mode 100644 scripts/update-packagejson/package.json create mode 100644 scripts/update-packagejson/src/index.ts create mode 100644 scripts/update-packagejson/src/update-cdk-packages.ts create mode 100644 scripts/update-packagejson/tsconfig.json create mode 100644 scripts/update-packagejson/update-cdk-packages.ts diff --git a/scripts/build-all-typescript.js b/scripts/build-all-typescript.js new file mode 100755 index 0000000000..cdd5621512 --- /dev/null +++ b/scripts/build-all-typescript.js @@ -0,0 +1,461 @@ +#!/usr/bin/env node +/** + * Script to build all TypeScript CDK projects in parallel + * Using worker threads for maximum performance + */ +const fs = require('node:fs'); +const fsPromises = require('node:fs/promises'); +const path = require('node:path'); +const os = require('node:os'); +const { execSync, spawn } = require('node:child_process'); +const { performance } = require('node:perf_hooks'); +const { Worker, isMainThread, parentPort, workerData } = require('node:worker_threads'); +const { createReadStream, createWriteStream } = require('node:fs'); +const readline = require('node:readline'); + +// Configuration +const SCRIPT_DIR = __dirname; +const REPO_ROOT = path.dirname(SCRIPT_DIR); +const TYPESCRIPT_DIR = path.join(REPO_ROOT, 'typescript'); +const BUILD_SCRIPT = path.join(SCRIPT_DIR, 'build-typescript.sh'); +const TEMP_DIR = fs.mkdtempSync(path.join(os.tmpdir(), 'build-ts-')); + +// Use 75% of available cores by default, configurable via env var +const MAX_PARALLEL = Math.max(1, Math.floor(os.cpus().length * + (process.env.BUILD_CONCURRENCY ? parseFloat(process.env.BUILD_CONCURRENCY) : 0.75))); + +/** + * Find all TypeScript CDK projects using Node.js file system APIs + */ +async function findProjects() { + console.log('Finding all TypeScript CDK projects...'); + + const projects = []; + + // Recursive function to find cdk.json files + async function findCdkJsonFiles(dir) { + const entries = await fsPromises.readdir(dir, { withFileTypes: true }); + + for (const entry of entries) { + const fullPath = path.join(dir, entry.name); + + // Skip node_modules and cdk.out directories + if (entry.isDirectory() && + entry.name !== 'node_modules' && + entry.name !== 'cdk.out') { + await findCdkJsonFiles(fullPath); + } else if (entry.isFile() && entry.name === 'cdk.json') { + projects.push(fullPath); + } + } + } + + try { + await findCdkJsonFiles(TYPESCRIPT_DIR); + projects.sort(); // Sort for consistent order + + console.log(`Found ${projects.length} TypeScript CDK projects to build`); + console.log(`Using concurrency: ${MAX_PARALLEL} parallel workers`); + console.log('=============================='); + + return projects; + } catch (error) { + console.error(`Error finding projects: ${error}`); + return []; + } +} + +/** + * Worker thread function to build a project + */ +async function workerBuildProject(data) { + if (!parentPort) return; + + const { projectPath, buildScript, repoRoot, tempDir } = data; + const projectDir = path.dirname(projectPath); + const relPath = path.relative(repoRoot, projectDir); + const safeFileName = relPath.replace(/\//g, '_'); + const logFile = path.join(tempDir, `${safeFileName}.log`); + + const startTime = performance.now(); + + try { + // Check for DO_NOT_AUTOTEST flag + if (fs.existsSync(path.join(projectDir, 'DO_NOT_AUTOTEST'))) { + parentPort.postMessage({ + type: 'result', + result: { + path: relPath, + status: 'SKIPPED', + duration: performance.now() - startTime, + logFile + } + }); + return; + } + + // Check for package.json + const packageJsonPath = path.join(projectDir, 'package.json'); + if (!fs.existsSync(packageJsonPath)) { + parentPort.postMessage({ + type: 'result', + result: { + path: relPath, + status: 'SKIPPED', + duration: performance.now() - startTime, + logFile + } + }); + return; + } + + // Get relative path to package.json + const packageJsonRelPath = path.relative(repoRoot, packageJsonPath); + + // Create a write stream for the log file + const logStream = createWriteStream(logFile); + + // Run the build script and capture output + const command = `${buildScript} "${packageJsonRelPath}"`; + const proc = spawn(command, [], { shell: true }); + + // Pipe output to both the log file and capture it + proc.stdout.pipe(logStream); + proc.stderr.pipe(logStream); + + let output = ''; + proc.stdout.on('data', (data) => { + output += data.toString(); + }); + + proc.stderr.on('data', (data) => { + output += data.toString(); + }); + + // Wait for the process to complete + const exitCode = await new Promise((resolve) => { + proc.on('close', (code) => resolve(code || 0)); + }); + + // Close the log stream + logStream.end(); + + // Send result back to main thread + parentPort.postMessage({ + type: 'result', + result: { + path: relPath, + status: exitCode === 0 ? 'SUCCESS' : 'FAILED', + duration: performance.now() - startTime, + logFile + } + }); + } catch (error) { + // If the command fails, write the error to the log file and report failure + try { + fs.writeFileSync(logFile, `Error: ${error}`); + } catch (e) { + // Ignore error writing to log file + } + + parentPort.postMessage({ + type: 'result', + result: { + path: relPath, + status: 'FAILED', + duration: performance.now() - startTime, + logFile + } + }); + } +} + +/** + * Process warnings from logs using pure Node.js + */ +async function processWarnings(results) { + const warnings = []; + + for (const result of results) { + try { + if (fs.existsSync(result.logFile)) { + // Use readline to process the file line by line + const fileStream = createReadStream(result.logFile); + const rl = readline.createInterface({ + input: fileStream, + crlfDelay: Infinity + }); + + for await (const line of rl) { + if (line.toLowerCase().includes('[warning]')) { + warnings.push(`[${result.path}] ${line.trim()}`); + } + } + } + } catch (error) { + // Ignore file reading errors + } + } + + return [...new Set(warnings)]; // Remove duplicates +} + +/** + * Run builds using worker threads + */ +async function runBuildsWithWorkers(projects) { + return new Promise((resolve) => { + const results = []; + let activeWorkers = 0; + let projectIndex = 0; + + const startNextWorker = () => { + if (projectIndex >= projects.length) { + if (activeWorkers === 0) { + resolve(results); + } + return; + } + + const projectPath = projects[projectIndex++]; + activeWorkers++; + + const worker = new Worker(__filename, { + workerData: { + projectPath, + buildScript: BUILD_SCRIPT, + repoRoot: REPO_ROOT, + tempDir: TEMP_DIR + } + }); + + worker.on('message', (message) => { + if (message.type === 'result') { + const { result } = message; + results.push(result); + + // Log the result + let icon = '❓'; + if (result.status === 'SUCCESS') icon = '✅'; + if (result.status === 'FAILED') icon = '❌'; + if (result.status === 'SKIPPED') icon = '⏭️'; + + const duration = result.status !== 'SKIPPED' ? + ` (${(result.duration / 1000).toFixed(2)}s)` : ''; + console.log(`${icon} ${result.path}${duration}`); + } + }); + + worker.on('error', (error) => { + console.error(`Worker error for ${path.relative(REPO_ROOT, projectPath)}: ${error}`); + results.push({ + path: path.relative(REPO_ROOT, projectPath), + status: 'FAILED', + duration: 0, + logFile: '' + }); + + activeWorkers--; + startNextWorker(); + }); + + worker.on('exit', () => { + activeWorkers--; + startNextWorker(); + }); + }; + + // Start initial batch of workers + for (let i = 0; i < Math.min(MAX_PARALLEL, projects.length); i++) { + startNextWorker(); + } + }); +} + +/** + * Read a file using pure Node.js + */ +async function readFile(filePath) { + try { + return await fsPromises.readFile(filePath, 'utf8'); + } catch (error) { + return ''; + } +} + +/** + * Print build summary + */ +async function printSummary(results) { + // Count results by status + const counts = { + SUCCESS: results.filter(r => r.status === 'SUCCESS').length, + FAILED: results.filter(r => r.status === 'FAILED').length, + SKIPPED: results.filter(r => r.status === 'SKIPPED').length + }; + + // Calculate total duration + const totalDuration = results.reduce((sum, result) => sum + result.duration, 0) / 1000; + + // Sort projects by path + const sortedResults = [...results].sort((a, b) => a.path.localeCompare(b.path)); + + console.log(''); + console.log('=============================='); + console.log('BUILD SUMMARY'); + console.log('=============================='); + console.log(`Total: ${results.length} projects in ${totalDuration.toFixed(2)}s`); + console.log(`✅ ${counts.SUCCESS} succeeded`); + console.log(`❌ ${counts.FAILED} failed`); + console.log(`⏭️ ${counts.SKIPPED} skipped`); + + console.log(''); + console.log('Project Status:'); + console.log('-----------------------------'); + + // Group by status for better readability + if (counts.SUCCESS > 0) { + console.log('\nSuccessful builds:'); + for (const result of sortedResults.filter(r => r.status === 'SUCCESS')) { + console.log(`✅ ${result.path} (${(result.duration / 1000).toFixed(2)}s)`); + } + } + + if (counts.SKIPPED > 0) { + console.log('\nSkipped builds:'); + for (const result of sortedResults.filter(r => r.status === 'SKIPPED')) { + console.log(`⏭️ ${result.path}`); + } + } + + if (counts.FAILED > 0) { + console.log('\nFailed builds:'); + for (const result of sortedResults.filter(r => r.status === 'FAILED')) { + console.log(`❌ ${result.path} (${(result.duration / 1000).toFixed(2)}s)`); + } + } + + // Process and display warnings + const warnings = await processWarnings(results); + if (warnings.length > 0) { + console.log(''); + console.log('=============================='); + console.log('DEPRECATION WARNINGS'); + console.log('=============================='); + warnings.forEach(warning => console.log(warning)); + } + + // Print logs for failed builds + const failedResults = results.filter(r => r.status === 'FAILED'); + if (failedResults.length > 0) { + console.log(''); + console.log('Build logs for failed projects:'); + console.log('=============================='); + + for (const result of failedResults) { + console.log(''); + console.log(`Log for ${result.path}:`); + console.log('-------------------------------------------'); + try { + if (fs.existsSync(result.logFile)) { + const logContent = await readFile(result.logFile); + console.log(logContent); + } else { + console.log('Log file not found'); + } + } catch (error) { + console.log(`Error reading log file: ${error}`); + } + console.log('-------------------------------------------'); + } + } +} + +/** + * Clean up temporary files + */ +async function cleanup() { + try { + await fsPromises.rm(TEMP_DIR, { recursive: true, force: true }); + } catch (error) { + console.error(`Error cleaning up temporary directory: ${error}`); + } +} + +/** + * Main function + */ +async function main() { + const startTime = performance.now(); + + try { + // Register cleanup handler + process.on('exit', () => { + try { + fs.rmSync(TEMP_DIR, { recursive: true, force: true }); + } catch (error) { + // Ignore cleanup errors on exit + } + }); + + process.on('SIGINT', () => { + console.log('\nBuild process interrupted'); + process.exit(1); + }); + + // Check if build script exists and is executable + if (!fs.existsSync(BUILD_SCRIPT)) { + console.error(`Error: Build script not found at ${BUILD_SCRIPT}`); + process.exit(1); + } + + // Make build script executable if it's not + try { + fs.chmodSync(BUILD_SCRIPT, 0o755); + } catch (error) { + console.error(`Warning: Could not make build script executable: ${error}`); + } + + // Find projects + const projects = await findProjects(); + if (projects.length === 0) { + console.log('No TypeScript CDK projects found.'); + return; + } + + // Run builds + const results = await runBuildsWithWorkers(projects); + + // Print summary + await printSummary(results); + + // Log total execution time + const totalTime = (performance.now() - startTime) / 1000; + console.log(`\nTotal execution time: ${totalTime.toFixed(2)}s`); + + // Exit with error if any builds failed + if (results.some(r => r.status === 'FAILED')) { + process.exit(1); + } + } catch (error) { + console.error(`Error: ${error}`); + process.exit(1); + } finally { + await cleanup(); + } +} + +// Worker thread entry point +if (!isMainThread) { + workerBuildProject(workerData).catch(error => { + console.error(`Worker error: ${error}`); + process.exit(1); + }); +} +// Main thread entry point +else { + main().catch(error => { + console.error(`Unhandled error: ${error}`); + process.exit(1); + }); +} diff --git a/scripts/update-cdk-packages.ts b/scripts/update-cdk-packages.ts new file mode 100644 index 0000000000..cb32b33c16 --- /dev/null +++ b/scripts/update-cdk-packages.ts @@ -0,0 +1,248 @@ +#!/usr/bin/env tsx + +import { readFile, writeFile } from 'node:fs/promises'; +import { opendir } from 'node:fs/promises'; +import { resolve, join } from 'node:path'; +import { setTimeout as sleep } from 'node:timers/promises'; + +interface PackageJson { + dependencies?: Record; + devDependencies?: Record; + [key: string]: unknown; +} + +interface CdkVersion { + version: string; +} + +type DependencyUpdates = { + dependencies: Record; + devDependencies: Record; +}; + +class PackageUpdateError extends Error { + override cause?: Error; + constructor(message: string, options?: { cause: Error }) { + super(message); + this.name = 'PackageUpdateError'; + this.cause = options?.cause; + } +} + +// Constants for URLs +const URLS = { + templatePackage: 'https://raw.githubusercontent.com/aws/aws-cdk-cli/refs/heads/main/packages/aws-cdk/lib/init-templates/app/typescript/package.json', + cdkVersion: 'https://raw.githubusercontent.com/aws/aws-cdk/main/version.v2.json', + constructsPackage: 'https://raw.githubusercontent.com/aws/aws-cdk-cli/refs/heads/main/packages/aws-cdk/package.json' +} as const; + +// Utility function to get CDK CLI version +async function getCdkCliVersion(): Promise { + try { + const { exec } = require('child_process'); + return new Promise((resolve, reject) => { + exec('npx cdk --version', (error: Error | null, stdout: string) => { + if (error) { + reject(new PackageUpdateError('Failed to get CDK version', { cause: error })); + return; + } + // Extract just the version number from the output (e.g., "2.1004.0" from "2.1004.0 (build f0ad96e)") + const version = stdout.trim().split(' ')[0]; + resolve(version); + }); + }); + } catch (error) { + throw new PackageUpdateError( + 'Failed to get CDK CLI version', + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } +} + +// Utility function to fetch and parse JSON with retries +async function fetchJson(url: string, retries = 3): Promise { + for (let attempt = 1; attempt <= retries; attempt++) { + try { + const controller = new AbortController(); + const timeoutId = setTimeout(() => controller.abort(), 5000); // 5 second timeout + + const response = await fetch(url, { + signal: controller.signal, + headers: { + 'Accept': 'application/json', + 'User-Agent': 'CDK-Package-Updater' + } + }); + clearTimeout(timeoutId); + + if (!response.ok) { + throw new Error(`HTTP error! status: ${response.status}`); + } + + return await response.json() as T; + } catch (error) { + if (attempt === retries) { + throw new PackageUpdateError( + `Failed to fetch from ${url} after ${retries} attempts`, + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } + console.warn(`Attempt ${attempt} failed, retrying after ${attempt * 1000}ms...`); + await sleep(attempt * 1000); // Exponential backoff + } + } + throw new PackageUpdateError('Unreachable code path'); +} + +// Utility function to find all package.json files using async iterator +async function findPackageJsonFiles(startPath: string): Promise { + const results: string[] = []; + + async function* walk(dir: string): AsyncGenerator { + try { + for await (const entry of await opendir(dir)) { + const fullPath = join(dir, entry.name); + if (entry.isDirectory() && entry.name !== 'node_modules') { + yield* walk(fullPath); + } else if (entry.isFile() && entry.name === 'package.json') { + yield fullPath; + } + } + } catch (error) { + throw new PackageUpdateError( + `Error walking directory ${dir}`, + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } + } + + for await (const file of walk(startPath)) { + results.push(file); + } + + return results; +} + +// Function to update a single package.json file +async function updatePackageJson( + filePath: string, + updates: DependencyUpdates +): Promise { + try { + const fileContent = await readFile(filePath, { encoding: 'utf8' }); + const content = JSON.parse(fileContent) as PackageJson; + let updated = false; + + // Helper function to update dependencies + const updateDeps = ( + depType: 'dependencies' | 'devDependencies', + updates: Record + ) => { + if (!content[depType]) return; + + for (const [pkg, version] of Object.entries(updates)) { + if (content[depType]![pkg] && content[depType]![pkg] !== version) { + content[depType]![pkg] = version; + console.log(`Updated ${pkg} to ${version} in ${filePath}`); + updated = true; + } + } + }; + + // Update both types of dependencies + updateDeps('dependencies', updates.dependencies); + updateDeps('devDependencies', updates.devDependencies); + + if (updated) { + await writeFile(filePath, JSON.stringify(content, null, 2) + '\n'); + } + } catch (error) { + throw new PackageUpdateError( + `Error updating ${filePath}`, + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } +} + +// Main function +async function updatePackages(): Promise { + console.log('Fetching latest versions from AWS CDK repositories...'); + + try { + // Fetch all required data in parallel with AbortController + const controller = new AbortController(); + const timeoutId = setTimeout(() => controller.abort(), 15000); // 15 second timeout + + const [templatePackage, cdkVersion, constructsPackage] = await Promise.all([ + fetchJson(URLS.templatePackage), + fetchJson(URLS.cdkVersion), + fetchJson(URLS.constructsPackage) + ]); + + clearTimeout(timeoutId); + + // Get the CDK version by running the CLI command + const cdkCliVersion = await getCdkCliVersion(); + console.log(`Detected CDK CLI version: ${cdkCliVersion}`); + + // Define the dependencies to update + const updates: DependencyUpdates = { + devDependencies: { + '@types/jest': templatePackage.devDependencies?.['@types/jest'] ?? '', + '@types/node': templatePackage.devDependencies?.['@types/node'] ?? '', + 'jest': templatePackage.devDependencies?.jest ?? '', + 'ts-jest': templatePackage.devDependencies?.['ts-jest'] ?? '', + 'ts-node': templatePackage.devDependencies?.['ts-node'] ?? '', + 'typescript': templatePackage.devDependencies?.typescript ?? '', + 'aws-cdk': cdkCliVersion + }, + dependencies: { + 'aws-cdk-lib': cdkVersion.version, + 'constructs': constructsPackage.devDependencies?.constructs ?? '' + } + }; + + // Validate that we got all the versions we need + const missingVersions = [ + ...Object.entries(updates.dependencies), + ...Object.entries(updates.devDependencies) + ].filter(([, version]) => !version); + + if (missingVersions.length > 0) { + throw new PackageUpdateError( + `Missing versions for: ${missingVersions.map(([pkg]) => pkg).join(', ')}` + ); + } + + // Find all package.json files + const typescriptDir = resolve(__dirname, '../typescript'); + console.log(`Searching for package.json files in ${typescriptDir}...`); + const packageFiles = await findPackageJsonFiles(typescriptDir); + + console.log(`Found ${packageFiles.length} package.json files to update.`); + + // Update all package.json files in parallel with concurrency limit + const concurrencyLimit = 5; + for (let i = 0; i < packageFiles.length; i += concurrencyLimit) { + const batch = packageFiles.slice(i, i + concurrencyLimit); + await Promise.all( + batch.map(filePath => updatePackageJson(filePath, updates)) + ); + } + + console.log('Package updates completed successfully! 🎉'); + } catch (error) { + if (error instanceof PackageUpdateError) { + console.error('Error updating packages:', error.message); + if (error.cause) { + console.error('Caused by:', error.cause); + } + } else { + console.error('Unexpected error:', error); + } + process.exit(1); + } +} + +// Run the update +updatePackages(); diff --git a/scripts/update-packagejson/.eslintrc.json b/scripts/update-packagejson/.eslintrc.json new file mode 100644 index 0000000000..b14b7f2a68 --- /dev/null +++ b/scripts/update-packagejson/.eslintrc.json @@ -0,0 +1,22 @@ +{ + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": 2022, + "sourceType": "module", + "project": "./tsconfig.json" + }, + "plugins": ["@typescript-eslint"], + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended" + ], + "rules": { + "@typescript-eslint/explicit-function-return-type": "warn", + "@typescript-eslint/no-explicit-any": "warn", + "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }] + }, + "env": { + "node": true, + "es2022": true + } +} diff --git a/scripts/update-packagejson/.gitignore b/scripts/update-packagejson/.gitignore new file mode 100644 index 0000000000..0ba9c7d6f8 --- /dev/null +++ b/scripts/update-packagejson/.gitignore @@ -0,0 +1,33 @@ +# Dependency directories +node_modules/ + +# Build output +dist/ +build/ + +# Coverage directory +coverage/ + +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Environment variables +.env +.env.local +.env.development.local +.env.test.local +.env.production.local + +# IDE files +.idea/ +.vscode/ +*.swp +*.swo + +# OS files +.DS_Store +Thumbs.db diff --git a/scripts/update-packagejson/README.md b/scripts/update-packagejson/README.md new file mode 100644 index 0000000000..a2a74cbf20 --- /dev/null +++ b/scripts/update-packagejson/README.md @@ -0,0 +1,51 @@ +# update-packagejson + +A utility for updating package.json files in AWS CDK projects to keep dependencies in sync with the latest versions. + +## Prerequisites + +- Node.js (LTS version, 18.x or later) +- npm or yarn + +## Installation + +```bash +npm install +``` + +## Usage + +1. Build the project: + +```bash +npm run build +``` + +2. Run the utility with the repository root path: + +```bash +node dist/index.js /path/to/repository +``` + +For example: + +```bash +node dist/index.js ../my-cdk-project +``` + +The utility will: +- Fetch the latest versions of AWS CDK dependencies from official sources +- Find all package.json files in the specified directory +- Update the dependencies to match the latest versions +- Only update files that need changes + +## Development + +- `npm run build` - Transpile TypeScript to JavaScript +- `npm run clean` - Remove build artifacts +- `npm run lint` - Run ESLint +- `npm test` - Run tests + +## License + +ISC diff --git a/scripts/update-packagejson/jest.config.js b/scripts/update-packagejson/jest.config.js new file mode 100644 index 0000000000..5bb3c7f4f2 --- /dev/null +++ b/scripts/update-packagejson/jest.config.js @@ -0,0 +1,10 @@ +/** @type {import('ts-jest').JestConfigWithTsJest} */ +module.exports = { + preset: 'ts-jest', + testEnvironment: 'node', + collectCoverage: true, + coverageDirectory: 'coverage', + coveragePathIgnorePatterns: ['/node_modules/', '/dist/'], + testMatch: ['**/*.test.ts'], + verbose: true +}; diff --git a/scripts/update-packagejson/package.json b/scripts/update-packagejson/package.json new file mode 100644 index 0000000000..44e532cab1 --- /dev/null +++ b/scripts/update-packagejson/package.json @@ -0,0 +1,43 @@ +{ + "name": "update-packagejson", + "version": "1.0.0", + "description": "Package.json update utility", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "bin": { + "update-packagejson": "./dist/index.js" + }, + "scripts": { + "build": "tsc", + "clean": "rimraf dist", + "lint": "eslint . --ext .ts", + "test": "jest", + "prebuild": "npm run clean", + "prepare": "npm run build" + }, + "keywords": [ + "aws", + "cdk", + "package", + "update" + ], + "author": "", + "license": "ISC", + "engines": { + "node": ">=18.0.0" + }, + "devDependencies": { + "@types/jest": "^29.5.14", + "@types/node": "22.7.9", + "@typescript-eslint/eslint-plugin": "^7.1.0", + "@typescript-eslint/parser": "^7.1.0", + "eslint": "^8.57.0", + "jest": "^29.7.0", + "rimraf": "^5.0.5", + "ts-jest": "^29.2.5", + "typescript": "~5.6.3" + }, + "dependencies": { + "tsx": "^4.7.1" + } +} diff --git a/scripts/update-packagejson/src/index.ts b/scripts/update-packagejson/src/index.ts new file mode 100644 index 0000000000..c42333ab45 --- /dev/null +++ b/scripts/update-packagejson/src/index.ts @@ -0,0 +1,41 @@ +#!/usr/bin/env node + +/** + * update-packagejson + * A utility for updating package.json files + */ + +import { updatePackages } from './update-cdk-packages'; + +/** + * Main function to update package.json files + */ +async function main(): Promise { + try { + // Get the repository root path from command line arguments + const repoRoot = process.argv[2]; + + if (!repoRoot) { + console.error('Error: Repository root path is required'); + console.error('Usage: update-packagejson '); + process.exit(1); + } + + console.log('Package.json update utility'); + await updatePackages(repoRoot); + } catch (error) { + console.error('Error:', error); + process.exit(1); + } +} + +// Run the main function +if (require.main === module) { + main().catch((error) => { + console.error('Unhandled error:', error); + process.exit(1); + }); +} + +// Export functions for testing or importing +export { main }; diff --git a/scripts/update-packagejson/src/update-cdk-packages.ts b/scripts/update-packagejson/src/update-cdk-packages.ts new file mode 100644 index 0000000000..4a26639928 --- /dev/null +++ b/scripts/update-packagejson/src/update-cdk-packages.ts @@ -0,0 +1,255 @@ +#!/usr/bin/env tsx + +import { readFile, writeFile } from 'node:fs/promises'; +import { opendir } from 'node:fs/promises'; +import { resolve, join } from 'node:path'; +import { setTimeout as sleep } from 'node:timers/promises'; + +interface PackageJson { + dependencies?: Record; + devDependencies?: Record; + [key: string]: unknown; +} + +interface CdkVersion { + version: string; +} + +type DependencyUpdates = { + dependencies: Record; + devDependencies: Record; +}; + +class PackageUpdateError extends Error { + override cause?: Error; + constructor(message: string, options?: { cause: Error }) { + super(message); + this.name = 'PackageUpdateError'; + this.cause = options?.cause; + } +} + +// Constants for URLs +const URLS = { + templatePackage: 'https://raw.githubusercontent.com/aws/aws-cdk-cli/refs/heads/main/packages/aws-cdk/lib/init-templates/app/typescript/package.json', + cdkVersion: 'https://raw.githubusercontent.com/aws/aws-cdk/main/version.v2.json', + constructsPackage: 'https://raw.githubusercontent.com/aws/aws-cdk-cli/refs/heads/main/packages/aws-cdk/package.json' +} as const; + +// Utility function to get CDK CLI version +async function getCdkCliVersion(): Promise { + try { + const { exec } = require('child_process'); + return new Promise((resolve, reject) => { + exec('npx cdk --version', (error: Error | null, stdout: string) => { + if (error) { + reject(new PackageUpdateError('Failed to get CDK version', { cause: error })); + return; + } + // Extract just the version number from the output (e.g., "2.1004.0" from "2.1004.0 (build f0ad96e)") + const version = stdout.trim().split(' ')[0]; + resolve(version); + }); + }); + } catch (error) { + throw new PackageUpdateError( + 'Failed to get CDK CLI version', + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } +} + +// Utility function to fetch and parse JSON with retries +async function fetchJson(url: string, retries = 3): Promise { + for (let attempt = 1; attempt <= retries; attempt++) { + try { + const controller = new AbortController(); + const timeoutId = setTimeout(() => controller.abort(), 5000); // 5 second timeout + + const response = await fetch(url, { + signal: controller.signal, + headers: { + 'Accept': 'application/json', + 'User-Agent': 'CDK-Package-Updater' + } + }); + clearTimeout(timeoutId); + + if (!response.ok) { + throw new Error(`HTTP error! status: ${response.status}`); + } + + return await response.json() as T; + } catch (error) { + if (attempt === retries) { + throw new PackageUpdateError( + `Failed to fetch from ${url} after ${retries} attempts`, + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } + console.warn(`Attempt ${attempt} failed, retrying after ${attempt * 1000}ms...`); + await sleep(attempt * 1000); // Exponential backoff + } + } + throw new PackageUpdateError('Unreachable code path'); +} + +// Utility function to find all package.json files using async iterator +async function findPackageJsonFiles(startPath: string): Promise { + const results: string[] = []; + + async function* walk(dir: string): AsyncGenerator { + try { + for await (const entry of await opendir(dir)) { + const fullPath = join(dir, entry.name); + if (entry.isDirectory() && entry.name !== 'node_modules') { + yield* walk(fullPath); + } else if (entry.isFile() && entry.name === 'package.json') { + yield fullPath; + } + } + } catch (error) { + throw new PackageUpdateError( + `Error walking directory ${dir}`, + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } + } + + for await (const file of walk(startPath)) { + results.push(file); + } + + return results; +} + +// Function to update a single package.json file +async function updatePackageJson( + filePath: string, + updates: DependencyUpdates +): Promise { + try { + const fileContent = await readFile(filePath, { encoding: 'utf8' }); + const content = JSON.parse(fileContent) as PackageJson; + let updated = false; + + // Helper function to update dependencies + const updateDeps = ( + depType: 'dependencies' | 'devDependencies', + updates: Record + ) => { + if (!content[depType]) return; + + for (const [pkg, version] of Object.entries(updates)) { + if (content[depType]![pkg] && content[depType]![pkg] !== version) { + content[depType]![pkg] = version; + console.log(`Updated ${pkg} to ${version} in ${filePath}`); + updated = true; + } + } + }; + + // Update both types of dependencies + updateDeps('dependencies', updates.dependencies); + updateDeps('devDependencies', updates.devDependencies); + + if (updated) { + await writeFile(filePath, JSON.stringify(content, null, 2) + '\n'); + } + } catch (error) { + throw new PackageUpdateError( + `Error updating ${filePath}`, + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } +} + +// Main function +async function updatePackages(repoRoot: string): Promise { + console.log('Fetching latest versions from AWS CDK repositories...'); + + try { + // Fetch all required data in parallel with AbortController + const controller = new AbortController(); + const timeoutId = setTimeout(() => controller.abort(), 15000); // 15 second timeout + + const [templatePackage, cdkVersion, constructsPackage] = await Promise.all([ + fetchJson(URLS.templatePackage), + fetchJson(URLS.cdkVersion), + fetchJson(URLS.constructsPackage) + ]); + + clearTimeout(timeoutId); + + // Get the CDK version by running the CLI command + const cdkCliVersion = await getCdkCliVersion(); + console.log(`Detected CDK CLI version: ${cdkCliVersion}`); + + // Define the dependencies to update + const updates: DependencyUpdates = { + devDependencies: { + '@types/jest': templatePackage.devDependencies?.['@types/jest'] ?? '', + '@types/node': templatePackage.devDependencies?.['@types/node'] ?? '', + 'jest': templatePackage.devDependencies?.jest ?? '', + 'ts-jest': templatePackage.devDependencies?.['ts-jest'] ?? '', + 'ts-node': templatePackage.devDependencies?.['ts-node'] ?? '', + 'typescript': templatePackage.devDependencies?.typescript ?? '', + 'aws-cdk': cdkCliVersion + }, + dependencies: { + 'aws-cdk-lib': cdkVersion.version, + 'constructs': constructsPackage.devDependencies?.constructs ?? '' + } + }; + + // Validate that we got all the versions we need + const missingVersions = [ + ...Object.entries(updates.dependencies), + ...Object.entries(updates.devDependencies) + ].filter(([, version]) => !version); + + if (missingVersions.length > 0) { + throw new PackageUpdateError( + `Missing versions for: ${missingVersions.map(([pkg]) => pkg).join(', ')}` + ); + } + + // Find all package.json files + const searchPath = resolve(repoRoot); + console.log(`Searching for package.json files in ${searchPath}...`); + const packageFiles = await findPackageJsonFiles(searchPath); + + console.log(`Found ${packageFiles.length} package.json files to update.`); + + // Update all package.json files in parallel with concurrency limit + const concurrencyLimit = 5; + for (let i = 0; i < packageFiles.length; i += concurrencyLimit) { + const batch = packageFiles.slice(i, i + concurrencyLimit); + await Promise.all( + batch.map(filePath => updatePackageJson(filePath, updates)) + ); + } + + console.log('Package updates completed successfully! 🎉'); + } catch (error) { + if (error instanceof PackageUpdateError) { + console.error('Error updating packages:', error.message); + if (error.cause) { + console.error('Caused by:', error.cause); + } + } else { + console.error('Unexpected error:', error); + } + process.exit(1); + } +} + +// Export functions for testing or importing +export { + updatePackages, + updatePackageJson, + findPackageJsonFiles, + fetchJson, + getCdkCliVersion, + PackageUpdateError +}; diff --git a/scripts/update-packagejson/tsconfig.json b/scripts/update-packagejson/tsconfig.json new file mode 100644 index 0000000000..4698b38c96 --- /dev/null +++ b/scripts/update-packagejson/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "target": "ES2022", + "module": "commonjs", + "lib": ["ES2022"], + "declaration": true, + "outDir": "./dist", + "rootDir": "./src", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "moduleResolution": "node", + "resolveJsonModule": true, + "sourceMap": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true + }, + "include": ["src/**/*"], + "exclude": ["node_modules", "dist", "**/*.test.ts"] +} diff --git a/scripts/update-packagejson/update-cdk-packages.ts b/scripts/update-packagejson/update-cdk-packages.ts new file mode 100644 index 0000000000..cb32b33c16 --- /dev/null +++ b/scripts/update-packagejson/update-cdk-packages.ts @@ -0,0 +1,248 @@ +#!/usr/bin/env tsx + +import { readFile, writeFile } from 'node:fs/promises'; +import { opendir } from 'node:fs/promises'; +import { resolve, join } from 'node:path'; +import { setTimeout as sleep } from 'node:timers/promises'; + +interface PackageJson { + dependencies?: Record; + devDependencies?: Record; + [key: string]: unknown; +} + +interface CdkVersion { + version: string; +} + +type DependencyUpdates = { + dependencies: Record; + devDependencies: Record; +}; + +class PackageUpdateError extends Error { + override cause?: Error; + constructor(message: string, options?: { cause: Error }) { + super(message); + this.name = 'PackageUpdateError'; + this.cause = options?.cause; + } +} + +// Constants for URLs +const URLS = { + templatePackage: 'https://raw.githubusercontent.com/aws/aws-cdk-cli/refs/heads/main/packages/aws-cdk/lib/init-templates/app/typescript/package.json', + cdkVersion: 'https://raw.githubusercontent.com/aws/aws-cdk/main/version.v2.json', + constructsPackage: 'https://raw.githubusercontent.com/aws/aws-cdk-cli/refs/heads/main/packages/aws-cdk/package.json' +} as const; + +// Utility function to get CDK CLI version +async function getCdkCliVersion(): Promise { + try { + const { exec } = require('child_process'); + return new Promise((resolve, reject) => { + exec('npx cdk --version', (error: Error | null, stdout: string) => { + if (error) { + reject(new PackageUpdateError('Failed to get CDK version', { cause: error })); + return; + } + // Extract just the version number from the output (e.g., "2.1004.0" from "2.1004.0 (build f0ad96e)") + const version = stdout.trim().split(' ')[0]; + resolve(version); + }); + }); + } catch (error) { + throw new PackageUpdateError( + 'Failed to get CDK CLI version', + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } +} + +// Utility function to fetch and parse JSON with retries +async function fetchJson(url: string, retries = 3): Promise { + for (let attempt = 1; attempt <= retries; attempt++) { + try { + const controller = new AbortController(); + const timeoutId = setTimeout(() => controller.abort(), 5000); // 5 second timeout + + const response = await fetch(url, { + signal: controller.signal, + headers: { + 'Accept': 'application/json', + 'User-Agent': 'CDK-Package-Updater' + } + }); + clearTimeout(timeoutId); + + if (!response.ok) { + throw new Error(`HTTP error! status: ${response.status}`); + } + + return await response.json() as T; + } catch (error) { + if (attempt === retries) { + throw new PackageUpdateError( + `Failed to fetch from ${url} after ${retries} attempts`, + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } + console.warn(`Attempt ${attempt} failed, retrying after ${attempt * 1000}ms...`); + await sleep(attempt * 1000); // Exponential backoff + } + } + throw new PackageUpdateError('Unreachable code path'); +} + +// Utility function to find all package.json files using async iterator +async function findPackageJsonFiles(startPath: string): Promise { + const results: string[] = []; + + async function* walk(dir: string): AsyncGenerator { + try { + for await (const entry of await opendir(dir)) { + const fullPath = join(dir, entry.name); + if (entry.isDirectory() && entry.name !== 'node_modules') { + yield* walk(fullPath); + } else if (entry.isFile() && entry.name === 'package.json') { + yield fullPath; + } + } + } catch (error) { + throw new PackageUpdateError( + `Error walking directory ${dir}`, + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } + } + + for await (const file of walk(startPath)) { + results.push(file); + } + + return results; +} + +// Function to update a single package.json file +async function updatePackageJson( + filePath: string, + updates: DependencyUpdates +): Promise { + try { + const fileContent = await readFile(filePath, { encoding: 'utf8' }); + const content = JSON.parse(fileContent) as PackageJson; + let updated = false; + + // Helper function to update dependencies + const updateDeps = ( + depType: 'dependencies' | 'devDependencies', + updates: Record + ) => { + if (!content[depType]) return; + + for (const [pkg, version] of Object.entries(updates)) { + if (content[depType]![pkg] && content[depType]![pkg] !== version) { + content[depType]![pkg] = version; + console.log(`Updated ${pkg} to ${version} in ${filePath}`); + updated = true; + } + } + }; + + // Update both types of dependencies + updateDeps('dependencies', updates.dependencies); + updateDeps('devDependencies', updates.devDependencies); + + if (updated) { + await writeFile(filePath, JSON.stringify(content, null, 2) + '\n'); + } + } catch (error) { + throw new PackageUpdateError( + `Error updating ${filePath}`, + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } +} + +// Main function +async function updatePackages(): Promise { + console.log('Fetching latest versions from AWS CDK repositories...'); + + try { + // Fetch all required data in parallel with AbortController + const controller = new AbortController(); + const timeoutId = setTimeout(() => controller.abort(), 15000); // 15 second timeout + + const [templatePackage, cdkVersion, constructsPackage] = await Promise.all([ + fetchJson(URLS.templatePackage), + fetchJson(URLS.cdkVersion), + fetchJson(URLS.constructsPackage) + ]); + + clearTimeout(timeoutId); + + // Get the CDK version by running the CLI command + const cdkCliVersion = await getCdkCliVersion(); + console.log(`Detected CDK CLI version: ${cdkCliVersion}`); + + // Define the dependencies to update + const updates: DependencyUpdates = { + devDependencies: { + '@types/jest': templatePackage.devDependencies?.['@types/jest'] ?? '', + '@types/node': templatePackage.devDependencies?.['@types/node'] ?? '', + 'jest': templatePackage.devDependencies?.jest ?? '', + 'ts-jest': templatePackage.devDependencies?.['ts-jest'] ?? '', + 'ts-node': templatePackage.devDependencies?.['ts-node'] ?? '', + 'typescript': templatePackage.devDependencies?.typescript ?? '', + 'aws-cdk': cdkCliVersion + }, + dependencies: { + 'aws-cdk-lib': cdkVersion.version, + 'constructs': constructsPackage.devDependencies?.constructs ?? '' + } + }; + + // Validate that we got all the versions we need + const missingVersions = [ + ...Object.entries(updates.dependencies), + ...Object.entries(updates.devDependencies) + ].filter(([, version]) => !version); + + if (missingVersions.length > 0) { + throw new PackageUpdateError( + `Missing versions for: ${missingVersions.map(([pkg]) => pkg).join(', ')}` + ); + } + + // Find all package.json files + const typescriptDir = resolve(__dirname, '../typescript'); + console.log(`Searching for package.json files in ${typescriptDir}...`); + const packageFiles = await findPackageJsonFiles(typescriptDir); + + console.log(`Found ${packageFiles.length} package.json files to update.`); + + // Update all package.json files in parallel with concurrency limit + const concurrencyLimit = 5; + for (let i = 0; i < packageFiles.length; i += concurrencyLimit) { + const batch = packageFiles.slice(i, i + concurrencyLimit); + await Promise.all( + batch.map(filePath => updatePackageJson(filePath, updates)) + ); + } + + console.log('Package updates completed successfully! 🎉'); + } catch (error) { + if (error instanceof PackageUpdateError) { + console.error('Error updating packages:', error.message); + if (error.cause) { + console.error('Caused by:', error.cause); + } + } else { + console.error('Unexpected error:', error); + } + process.exit(1); + } +} + +// Run the update +updatePackages(); From 21ebc172144c5c12c16542c7b69e25271e72b637 Mon Sep 17 00:00:00 2001 From: Michael Kaiser Date: Fri, 18 Apr 2025 09:44:44 -0500 Subject: [PATCH 3/5] chore:update cdk packages --- .../src/update-cdk-packages.ts | 4 ++-- .../amazon-mq-rabbitmq-lambda/package.json | 4 ++-- typescript/amplify-console-app/package.json | 4 ++-- .../package.json | 4 ++-- .../package.json | 4 ++-- .../package.json | 4 ++-- .../package.json | 4 ++-- .../package.json | 4 ++-- .../application-load-balancer/package.json | 4 ++-- .../appsync-graphql-dynamodb/package.json | 4 ++-- .../appsync-graphql-eventbridge/package.json | 4 ++-- typescript/appsync-graphql-http/package.json | 4 ++-- .../package.json | 4 ++-- typescript/aspects/package.json | 4 ++-- .../aws-codepipeline-ecs-lambda/package.json | 4 ++-- .../aws-transfer-sftp-server/package.json | 4 ++-- typescript/backup-s3/package.json | 4 ++-- typescript/cdkpipeline-ecs/package.json | 4 ++-- typescript/classic-load-balancer/package.json | 4 ++-- typescript/cloudfront-functions/package.json | 4 ++-- .../package.json | 4 ++-- .../package.json | 4 ++-- .../codepipeline-build-deploy/package.json | 4 ++-- .../codepipeline-glue-deploy/package.json | 4 ++-- .../codewhisperer-cloudwatch/package.json | 4 ++-- typescript/cognito-api-lambda/package.json | 4 ++-- typescript/connect-cdk/package.json | 4 ++-- typescript/custom-logical-names/package.json | 4 ++-- .../custom-resource-provider/package.json | 4 ++-- typescript/custom-resource/package.json | 4 ++-- typescript/ddb-stream-lambda-sns/package.json | 4 ++-- .../ddb/global-table-with-cmk/package.json | 4 ++-- .../package.json | 21 +++++++++++++------ typescript/ec2-instance/package.json | 4 ++-- typescript/ec2-ssm-local-zone/package.json | 4 ++-- typescript/ecs/cluster/package.json | 4 ++-- .../cross-stack-load-balancer/package.json | 4 ++-- .../package.json | 4 ++-- .../package.json | 4 ++-- .../ecs/ecs-service-with-logging/package.json | 4 ++-- .../package.json | 4 ++-- .../package.json | 4 ++-- .../package.json | 4 ++-- .../package.json | 4 ++-- .../ecs/fargate-service-with-efs/package.json | 4 ++-- .../package.json | 4 ++-- .../fargate-service-with-logging/package.json | 4 ++-- typescript/eks/cluster/package.json | 4 ++-- .../elasticbeanstalk-bg-pipeline/package.json | 4 ++-- .../elasticbeanstalk-environment/package.json | 4 ++-- typescript/eventbridge-lambda/package.json | 4 ++-- .../multiple-consumers/package.json | 4 ++-- .../single-consumer/package.json | 4 ++-- typescript/fsx-ad/package.json | 4 ++-- typescript/http-proxy-apigateway/package.json | 4 ++-- typescript/imagebuilder/package.json | 4 ++-- typescript/inspector2/package.json | 2 +- typescript/lambda-api-ci/package.json | 4 ++-- .../lambda-cloudwatch-dashboard/package.json | 4 ++-- typescript/lambda-cron/package.json | 4 ++-- typescript/lambda-layer/package.json | 4 ++-- .../package.json | 4 ++-- .../package.json | 4 ++-- typescript/lexbot/package.json | 4 ++-- typescript/my-widget-service/package.json | 4 ++-- typescript/neptune-with-vpc/package.json | 2 +- .../opensearch/cwlogs_ingestion/package.json | 4 ++-- .../opensearch/os_vpc_provision/package.json | 4 ++-- typescript/quicksight/package.json | 4 ++-- typescript/r53-resolver/package.json | 4 ++-- typescript/rds/aurora/package.json | 4 ++-- typescript/rds/mysql/package.json | 4 ++-- typescript/rds/oracle/package.json | 4 ++-- .../package.json | 4 ++-- typescript/resource-overrides/package.json | 4 ++-- .../package.json | 4 ++-- .../package.json | 4 ++-- typescript/s3-object-lambda/package.json | 4 ++-- typescript/s3-sns-lambda-chain/package.json | 4 ++-- .../secrets-manager-rotation/package.json | 4 ++-- .../portfolio-with-ec2-product/package.json | 4 ++-- .../ssm-document-association/package.json | 4 ++-- typescript/static-site-basic/package.json | 4 ++-- typescript/static-site/package.json | 4 ++-- .../package.json | 4 ++-- .../stepfunctions-job-poller/package.json | 4 ++-- typescript/waf/package.json | 4 ++-- 87 files changed, 185 insertions(+), 176 deletions(-) diff --git a/scripts/update-packagejson/src/update-cdk-packages.ts b/scripts/update-packagejson/src/update-cdk-packages.ts index 4a26639928..90393bb7cb 100644 --- a/scripts/update-packagejson/src/update-cdk-packages.ts +++ b/scripts/update-packagejson/src/update-cdk-packages.ts @@ -41,7 +41,7 @@ async function getCdkCliVersion(): Promise { try { const { exec } = require('child_process'); return new Promise((resolve, reject) => { - exec('npx cdk --version', (error: Error | null, stdout: string) => { + exec('cdk --version', (error: Error | null, stdout: string) => { if (error) { reject(new PackageUpdateError('Failed to get CDK version', { cause: error })); return; @@ -245,7 +245,7 @@ async function updatePackages(repoRoot: string): Promise { } // Export functions for testing or importing -export { +export { updatePackages, updatePackageJson, findPackageJsonFiles, diff --git a/typescript/amazon-mq-rabbitmq-lambda/package.json b/typescript/amazon-mq-rabbitmq-lambda/package.json index b299d3872f..c30688cc52 100644 --- a/typescript/amazon-mq-rabbitmq-lambda/package.json +++ b/typescript/amazon-mq-rabbitmq-lambda/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", @@ -21,7 +21,7 @@ }, "dependencies": { "@cdklabs/cdk-amazonmq": "^0.0.1", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/amplify-console-app/package.json b/typescript/amplify-console-app/package.json index c8c163baaa..c5992db6a9 100644 --- a/typescript/amplify-console-app/package.json +++ b/typescript/amplify-console-app/package.json @@ -15,11 +15,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.189.1", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/api-cors-lambda-crud-dynamodb/package.json b/typescript/api-cors-lambda-crud-dynamodb/package.json index d9cb674e34..4fa19468fb 100644 --- a/typescript/api-cors-lambda-crud-dynamodb/package.json +++ b/typescript/api-cors-lambda-crud-dynamodb/package.json @@ -16,12 +16,12 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "esbuild": "*", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/api-gateway-async-lambda-invocation/package.json b/typescript/api-gateway-async-lambda-invocation/package.json index bd81e9ac0c..40dc40962d 100644 --- a/typescript/api-gateway-async-lambda-invocation/package.json +++ b/typescript/api-gateway-async-lambda-invocation/package.json @@ -11,12 +11,12 @@ }, "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/api-gateway-lambda-token-authorizer/package.json b/typescript/api-gateway-lambda-token-authorizer/package.json index 12d77a9ccf..199f71ebb5 100644 --- a/typescript/api-gateway-lambda-token-authorizer/package.json +++ b/typescript/api-gateway-lambda-token-authorizer/package.json @@ -15,7 +15,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", @@ -24,7 +24,7 @@ }, "dependencies": { "@types/aws-lambda": "^8.10.121", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" }, diff --git a/typescript/api-gateway-parallel-step-functions/package.json b/typescript/api-gateway-parallel-step-functions/package.json index 944af99f75..be1ecd688e 100644 --- a/typescript/api-gateway-parallel-step-functions/package.json +++ b/typescript/api-gateway-parallel-step-functions/package.json @@ -19,12 +19,12 @@ }, "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/api-websocket-lambda-dynamodb/package.json b/typescript/api-websocket-lambda-dynamodb/package.json index 169aef622a..55f19ce9d9 100644 --- a/typescript/api-websocket-lambda-dynamodb/package.json +++ b/typescript/api-websocket-lambda-dynamodb/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/application-load-balancer/package.json b/typescript/application-load-balancer/package.json index 3b504bfdc3..360727646c 100644 --- a/typescript/application-load-balancer/package.json +++ b/typescript/application-load-balancer/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/appsync-graphql-dynamodb/package.json b/typescript/appsync-graphql-dynamodb/package.json index fc204d8f1d..93f47d2a38 100644 --- a/typescript/appsync-graphql-dynamodb/package.json +++ b/typescript/appsync-graphql-dynamodb/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", @@ -21,7 +21,7 @@ }, "dependencies": { "@aws-sdk/client-dynamodb": "^3.535.0", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/appsync-graphql-eventbridge/package.json b/typescript/appsync-graphql-eventbridge/package.json index e1260407fe..265bcb571b 100644 --- a/typescript/appsync-graphql-eventbridge/package.json +++ b/typescript/appsync-graphql-eventbridge/package.json @@ -14,12 +14,12 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3", "ts-node": "^10.9.2" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.9" } diff --git a/typescript/appsync-graphql-http/package.json b/typescript/appsync-graphql-http/package.json index 2503b4fb23..1c5cb115a7 100644 --- a/typescript/appsync-graphql-http/package.json +++ b/typescript/appsync-graphql-http/package.json @@ -17,11 +17,11 @@ "devDependencies": { "@aws-appsync/utils": "^1.5.0", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/appsync-graphql-typescript-resolver/package.json b/typescript/appsync-graphql-typescript-resolver/package.json index 50cc802897..7af30b5725 100644 --- a/typescript/appsync-graphql-typescript-resolver/package.json +++ b/typescript/appsync-graphql-typescript-resolver/package.json @@ -18,12 +18,12 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/aspects/package.json b/typescript/aspects/package.json index cbfd2f68da..739ae31b73 100644 --- a/typescript/aspects/package.json +++ b/typescript/aspects/package.json @@ -15,7 +15,7 @@ "@types/jest": "^29.5.14", "@types/node": "22.7.9", "@typescript-eslint/eslint-plugin": "^6.11.0", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "eslint": "^8.54.0", "eslint-config-standard-with-typescript": "^40.0.0", "eslint-plugin-import": "^2.29.0", @@ -27,7 +27,7 @@ "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/aws-codepipeline-ecs-lambda/package.json b/typescript/aws-codepipeline-ecs-lambda/package.json index dea13ab604..4c0325be1e 100644 --- a/typescript/aws-codepipeline-ecs-lambda/package.json +++ b/typescript/aws-codepipeline-ecs-lambda/package.json @@ -12,12 +12,12 @@ "devDependencies": { "@types/aws-lambda": "^8.10.140", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "@types/aws-lambda": "^8.10.140", "constructs": "^10.0.0", "source-map-support": "^0.5.21" diff --git a/typescript/aws-transfer-sftp-server/package.json b/typescript/aws-transfer-sftp-server/package.json index 6c8de932c7..4a0fa43e80 100644 --- a/typescript/aws-transfer-sftp-server/package.json +++ b/typescript/aws-transfer-sftp-server/package.json @@ -21,14 +21,14 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/backup-s3/package.json b/typescript/backup-s3/package.json index 8224477156..c41f254e2c 100644 --- a/typescript/backup-s3/package.json +++ b/typescript/backup-s3/package.json @@ -14,12 +14,12 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.16" } diff --git a/typescript/cdkpipeline-ecs/package.json b/typescript/cdkpipeline-ecs/package.json index 37fc6418bf..0134b18f83 100644 --- a/typescript/cdkpipeline-ecs/package.json +++ b/typescript/cdkpipeline-ecs/package.json @@ -14,12 +14,12 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/classic-load-balancer/package.json b/typescript/classic-load-balancer/package.json index 7291e8652d..917b30aff8 100644 --- a/typescript/classic-load-balancer/package.json +++ b/typescript/classic-load-balancer/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/cloudfront-functions/package.json b/typescript/cloudfront-functions/package.json index 8cda62a579..de7f5c6e06 100644 --- a/typescript/cloudfront-functions/package.json +++ b/typescript/cloudfront-functions/package.json @@ -15,12 +15,12 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/cloudwatch/evidently-client-side-evaluation-ecs/package.json b/typescript/cloudwatch/evidently-client-side-evaluation-ecs/package.json index 9566010a7a..c9aa1e339c 100644 --- a/typescript/cloudwatch/evidently-client-side-evaluation-ecs/package.json +++ b/typescript/cloudwatch/evidently-client-side-evaluation-ecs/package.json @@ -13,12 +13,12 @@ "devDependencies": { "@types/express": "^4.17.15", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { "@aws-sdk/client-evidently": "^3.245.0", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "express": "^4.17.1" } diff --git a/typescript/cloudwatch/evidently-client-side-evaluation-lambda/package.json b/typescript/cloudwatch/evidently-client-side-evaluation-lambda/package.json index 1152fb98ed..bda397f79a 100644 --- a/typescript/cloudwatch/evidently-client-side-evaluation-lambda/package.json +++ b/typescript/cloudwatch/evidently-client-side-evaluation-lambda/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/codepipeline-build-deploy/package.json b/typescript/codepipeline-build-deploy/package.json index 7b6fddb931..1cddeeffe8 100644 --- a/typescript/codepipeline-build-deploy/package.json +++ b/typescript/codepipeline-build-deploy/package.json @@ -13,14 +13,14 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "jest-junit": "^16.0.0", "source-map-support": "^0.5.21" diff --git a/typescript/codepipeline-glue-deploy/package.json b/typescript/codepipeline-glue-deploy/package.json index 49ac356262..345767b533 100644 --- a/typescript/codepipeline-glue-deploy/package.json +++ b/typescript/codepipeline-glue-deploy/package.json @@ -11,12 +11,12 @@ }, "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "cdk": "^2.130.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" diff --git a/typescript/codewhisperer-cloudwatch/package.json b/typescript/codewhisperer-cloudwatch/package.json index baffbf89df..619ee2eff8 100644 --- a/typescript/codewhisperer-cloudwatch/package.json +++ b/typescript/codewhisperer-cloudwatch/package.json @@ -15,12 +15,12 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/cognito-api-lambda/package.json b/typescript/cognito-api-lambda/package.json index 679f6fa926..26058b9483 100644 --- a/typescript/cognito-api-lambda/package.json +++ b/typescript/cognito-api-lambda/package.json @@ -14,11 +14,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/connect-cdk/package.json b/typescript/connect-cdk/package.json index d2fd7ca1e9..93290855c4 100644 --- a/typescript/connect-cdk/package.json +++ b/typescript/connect-cdk/package.json @@ -13,14 +13,14 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "cdk-nag": "^2.30.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" diff --git a/typescript/custom-logical-names/package.json b/typescript/custom-logical-names/package.json index 95f7fa90aa..cf4868dfed 100644 --- a/typescript/custom-logical-names/package.json +++ b/typescript/custom-logical-names/package.json @@ -10,12 +10,12 @@ "cdk": "cdk" }, "devDependencies": { - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.9" } diff --git a/typescript/custom-resource-provider/package.json b/typescript/custom-resource-provider/package.json index 8c1f8919ae..a84d876cea 100644 --- a/typescript/custom-resource-provider/package.json +++ b/typescript/custom-resource-provider/package.json @@ -15,12 +15,12 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.16" } diff --git a/typescript/custom-resource/package.json b/typescript/custom-resource/package.json index 9580df5114..4a8e3a8123 100644 --- a/typescript/custom-resource/package.json +++ b/typescript/custom-resource/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ddb-stream-lambda-sns/package.json b/typescript/ddb-stream-lambda-sns/package.json index 65ed0d5a1c..bbc4a22faf 100644 --- a/typescript/ddb-stream-lambda-sns/package.json +++ b/typescript/ddb-stream-lambda-sns/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", @@ -21,7 +21,7 @@ }, "dependencies": { "@aws-solutions-constructs/aws-dynamodbstreams-lambda": "^2.74.0", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ddb/global-table-with-cmk/package.json b/typescript/ddb/global-table-with-cmk/package.json index b2a3c7d1bb..4b7ebf57a0 100644 --- a/typescript/ddb/global-table-with-cmk/package.json +++ b/typescript/ddb/global-table-with-cmk/package.json @@ -12,14 +12,14 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.16" } diff --git a/typescript/ec2-instance-connect-endpoint/package.json b/typescript/ec2-instance-connect-endpoint/package.json index 373cdab559..01f4bf5861 100644 --- a/typescript/ec2-instance-connect-endpoint/package.json +++ b/typescript/ec2-instance-connect-endpoint/package.json @@ -16,12 +16,21 @@ }, "devDependencies": { "@types/jest": "^29.5.14", - "@types/node": "^16", - "aws-cdk": "2.1007.0", - "jest": "^29.5.0", - "ts-jest": "^29.1.1", - "ts-node": "^10.9.1", - "typescript": "^5.1.6" + "@types/node": "22.7.9", + "@typescript-eslint/eslint-plugin": "^5", + "@typescript-eslint/parser": "^5", + "aws-cdk": "2.1010.0", + "aws-cdk-lib": "2.85.0", + "constructs": "10.0.5", + "eslint": "^8", + "jest": "^29.7.0", + "ts-jest": "^29.2.5", + "ts-node": "^10.9.2", + "typescript": "~5.6.3" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.85.0", + "constructs": "^10.0.5" }, "dependencies": { "aws-cdk-lib": "2.189.1", diff --git a/typescript/ec2-instance/package.json b/typescript/ec2-instance/package.json index cb3529572e..7644ae0893 100644 --- a/typescript/ec2-instance/package.json +++ b/typescript/ec2-instance/package.json @@ -15,7 +15,7 @@ "@types/node": "22.7.9", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "esbuild": "^0.18.17", "eslint": "^8", "eslint-import-resolver-node": "^0.3.7", @@ -30,7 +30,7 @@ "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "dotenv": "^16.3.1" }, diff --git a/typescript/ec2-ssm-local-zone/package.json b/typescript/ec2-ssm-local-zone/package.json index 5800a73cc8..ffaeda8cbe 100644 --- a/typescript/ec2-ssm-local-zone/package.json +++ b/typescript/ec2-ssm-local-zone/package.json @@ -13,14 +13,14 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/cluster/package.json b/typescript/ecs/cluster/package.json index 73f7ec1315..8c03d3583d 100644 --- a/typescript/ecs/cluster/package.json +++ b/typescript/ecs/cluster/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/cross-stack-load-balancer/package.json b/typescript/ecs/cross-stack-load-balancer/package.json index 8694ed8aef..09be4d004c 100644 --- a/typescript/ecs/cross-stack-load-balancer/package.json +++ b/typescript/ecs/cross-stack-load-balancer/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/ecs-network-load-balanced-service/package.json b/typescript/ecs/ecs-network-load-balanced-service/package.json index b581b86096..3dd23be791 100644 --- a/typescript/ecs/ecs-network-load-balanced-service/package.json +++ b/typescript/ecs/ecs-network-load-balanced-service/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/ecs-service-with-advanced-alb-config/package.json b/typescript/ecs/ecs-service-with-advanced-alb-config/package.json index b28efc37da..7fc0d1e6cb 100644 --- a/typescript/ecs/ecs-service-with-advanced-alb-config/package.json +++ b/typescript/ecs/ecs-service-with-advanced-alb-config/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/ecs-service-with-logging/package.json b/typescript/ecs/ecs-service-with-logging/package.json index 7b5a012d90..d212809ec8 100644 --- a/typescript/ecs/ecs-service-with-logging/package.json +++ b/typescript/ecs/ecs-service-with-logging/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/ecs-service-with-task-networking/package.json b/typescript/ecs/ecs-service-with-task-networking/package.json index afa1d54c54..a7b2be4170 100644 --- a/typescript/ecs/ecs-service-with-task-networking/package.json +++ b/typescript/ecs/ecs-service-with-task-networking/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/ecs-service-with-task-placement/package.json b/typescript/ecs/ecs-service-with-task-placement/package.json index b28efc37da..7fc0d1e6cb 100644 --- a/typescript/ecs/ecs-service-with-task-placement/package.json +++ b/typescript/ecs/ecs-service-with-task-placement/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/fargate-application-load-balanced-service/package.json b/typescript/ecs/fargate-application-load-balanced-service/package.json index 279f837c6b..c32d958c0e 100644 --- a/typescript/ecs/fargate-application-load-balanced-service/package.json +++ b/typescript/ecs/fargate-application-load-balanced-service/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/fargate-service-with-auto-scaling/package.json b/typescript/ecs/fargate-service-with-auto-scaling/package.json index 70d6261b7c..e937734d9f 100644 --- a/typescript/ecs/fargate-service-with-auto-scaling/package.json +++ b/typescript/ecs/fargate-service-with-auto-scaling/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/fargate-service-with-efs/package.json b/typescript/ecs/fargate-service-with-efs/package.json index e02008ce8c..323a0963ed 100644 --- a/typescript/ecs/fargate-service-with-efs/package.json +++ b/typescript/ecs/fargate-service-with-efs/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/fargate-service-with-local-image/package.json b/typescript/ecs/fargate-service-with-local-image/package.json index 894451b354..72fc1aac31 100644 --- a/typescript/ecs/fargate-service-with-local-image/package.json +++ b/typescript/ecs/fargate-service-with-local-image/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/fargate-service-with-logging/package.json b/typescript/ecs/fargate-service-with-logging/package.json index 487b03f41c..9e68fd00cc 100644 --- a/typescript/ecs/fargate-service-with-logging/package.json +++ b/typescript/ecs/fargate-service-with-logging/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/eks/cluster/package.json b/typescript/eks/cluster/package.json index bfcb0fdf23..9d94429781 100644 --- a/typescript/eks/cluster/package.json +++ b/typescript/eks/cluster/package.json @@ -17,7 +17,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", @@ -25,7 +25,7 @@ }, "dependencies": { "@aws-cdk/lambda-layer-kubectl-v31": "^2.0.0", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/elasticbeanstalk/elasticbeanstalk-bg-pipeline/package.json b/typescript/elasticbeanstalk/elasticbeanstalk-bg-pipeline/package.json index f1b3b9c679..a9a2f657bf 100644 --- a/typescript/elasticbeanstalk/elasticbeanstalk-bg-pipeline/package.json +++ b/typescript/elasticbeanstalk/elasticbeanstalk-bg-pipeline/package.json @@ -17,10 +17,10 @@ "devDependencies": { "@types/node": "22.7.9", "typescript": "~5.6.3", - "aws-cdk": "2.1006.0" + "aws-cdk": "2.1010.0" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.9" } diff --git a/typescript/elasticbeanstalk/elasticbeanstalk-environment/package.json b/typescript/elasticbeanstalk/elasticbeanstalk-environment/package.json index 2e7e58e55a..ce5fa60fd8 100644 --- a/typescript/elasticbeanstalk/elasticbeanstalk-environment/package.json +++ b/typescript/elasticbeanstalk/elasticbeanstalk-environment/package.json @@ -17,10 +17,10 @@ "devDependencies": { "@types/node": "22.7.9", "typescript": "~5.6.3", - "aws-cdk": "2.1006.0" + "aws-cdk": "2.1010.0" }, "dependencies": { - "aws-cdk-lib": "2.188.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.9" } diff --git a/typescript/eventbridge-lambda/package.json b/typescript/eventbridge-lambda/package.json index 7d108af873..7c77721083 100644 --- a/typescript/eventbridge-lambda/package.json +++ b/typescript/eventbridge-lambda/package.json @@ -17,12 +17,12 @@ "devDependencies": { "@types/node": "22.7.9", "@types/jest": "^29.5.14", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/eventbridge-mesh/multiple-consumers/package.json b/typescript/eventbridge-mesh/multiple-consumers/package.json index b7a30b82c1..a14640f75b 100644 --- a/typescript/eventbridge-mesh/multiple-consumers/package.json +++ b/typescript/eventbridge-mesh/multiple-consumers/package.json @@ -11,12 +11,12 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1007.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.189.1", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/eventbridge-mesh/single-consumer/package.json b/typescript/eventbridge-mesh/single-consumer/package.json index b7a30b82c1..a14640f75b 100644 --- a/typescript/eventbridge-mesh/single-consumer/package.json +++ b/typescript/eventbridge-mesh/single-consumer/package.json @@ -11,12 +11,12 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1007.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.189.1", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/fsx-ad/package.json b/typescript/fsx-ad/package.json index c72b5d5720..3dbe4b8ce5 100644 --- a/typescript/fsx-ad/package.json +++ b/typescript/fsx-ad/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/http-proxy-apigateway/package.json b/typescript/http-proxy-apigateway/package.json index 301e1c7918..a0b5262f01 100644 --- a/typescript/http-proxy-apigateway/package.json +++ b/typescript/http-proxy-apigateway/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/imagebuilder/package.json b/typescript/imagebuilder/package.json index f59c0d13bb..dde84b8399 100644 --- a/typescript/imagebuilder/package.json +++ b/typescript/imagebuilder/package.json @@ -12,12 +12,12 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "cdk-nag": "2.28.27", "constructs": "^10.0.0", "source-map-support": "0.5.21" diff --git a/typescript/inspector2/package.json b/typescript/inspector2/package.json index 4368906448..88f832653c 100644 --- a/typescript/inspector2/package.json +++ b/typescript/inspector2/package.json @@ -22,7 +22,7 @@ "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/lambda-api-ci/package.json b/typescript/lambda-api-ci/package.json index f8b874c226..b3f9fb20ae 100644 --- a/typescript/lambda-api-ci/package.json +++ b/typescript/lambda-api-ci/package.json @@ -12,14 +12,14 @@ "prettier": "prettier --write '**/{bin,lib,src,tst}/*.ts'" }, "devDependencies": { - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "@types/node": "22.7.9", "ts-node": "^10.9.2", "typescript": "~5.6.3", "prettier": "^3.2.5" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "@aws-sdk/client-s3": "^3.525.0", "source-map-support": "^0.5.21" diff --git a/typescript/lambda-cloudwatch-dashboard/package.json b/typescript/lambda-cloudwatch-dashboard/package.json index 01d9320ca5..d38c901eb3 100644 --- a/typescript/lambda-cloudwatch-dashboard/package.json +++ b/typescript/lambda-cloudwatch-dashboard/package.json @@ -15,12 +15,12 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.16" } diff --git a/typescript/lambda-cron/package.json b/typescript/lambda-cron/package.json index c6d676ba7a..03866404ae 100644 --- a/typescript/lambda-cron/package.json +++ b/typescript/lambda-cron/package.json @@ -18,12 +18,12 @@ "devDependencies": { "@types/node": "22.7.9", "@types/jest": "^29.5.14", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/lambda-layer/package.json b/typescript/lambda-layer/package.json index 94b41317e4..93e528171c 100644 --- a/typescript/lambda-layer/package.json +++ b/typescript/lambda-layer/package.json @@ -12,12 +12,12 @@ "devDependencies": { "@aws-cdk/assert": "*", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.16" } diff --git a/typescript/lambda-manage-s3-event-notification/package.json b/typescript/lambda-manage-s3-event-notification/package.json index 7ae330aae1..68278902b9 100644 --- a/typescript/lambda-manage-s3-event-notification/package.json +++ b/typescript/lambda-manage-s3-event-notification/package.json @@ -12,13 +12,13 @@ "devDependencies": { "@aws-cdk/assert": "*", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { "@aws-sdk/client-s3": "^3.427.0", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.16" } diff --git a/typescript/lambda-provisioned-concurrency-autoscaling/package.json b/typescript/lambda-provisioned-concurrency-autoscaling/package.json index 539394de1a..242ccfe24e 100644 --- a/typescript/lambda-provisioned-concurrency-autoscaling/package.json +++ b/typescript/lambda-provisioned-concurrency-autoscaling/package.json @@ -18,14 +18,14 @@ "devDependencies": { "@aws-cdk/assert": "*", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "@types/jest": "^29.5.14", "jest": "^29.7.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/lexbot/package.json b/typescript/lexbot/package.json index 6ae53ad394..df820fce15 100644 --- a/typescript/lexbot/package.json +++ b/typescript/lexbot/package.json @@ -15,12 +15,12 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/my-widget-service/package.json b/typescript/my-widget-service/package.json index 8e7081495b..048df96a22 100644 --- a/typescript/my-widget-service/package.json +++ b/typescript/my-widget-service/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "*" } diff --git a/typescript/neptune-with-vpc/package.json b/typescript/neptune-with-vpc/package.json index ae59b67146..422f0380c1 100644 --- a/typescript/neptune-with-vpc/package.json +++ b/typescript/neptune-with-vpc/package.json @@ -10,7 +10,7 @@ "cdk": "cdk" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "@aws-cdk/aws-neptune-alpha": "^2.0.0-alpha.10", "@types/jest": "^26.0.10", diff --git a/typescript/opensearch/cwlogs_ingestion/package.json b/typescript/opensearch/cwlogs_ingestion/package.json index ffd3ad825d..6f997993fd 100644 --- a/typescript/opensearch/cwlogs_ingestion/package.json +++ b/typescript/opensearch/cwlogs_ingestion/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "aws-cdk-lib": "^2.165.0", "constructs": "^10.2.43", "globals": "^15.6.0", @@ -25,7 +25,7 @@ "dependencies": { "@aws-cdk/aws-lambda-python-alpha": "2.165.0-alpha.0", "aws-cdk": "^2.165.0", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/opensearch/os_vpc_provision/package.json b/typescript/opensearch/os_vpc_provision/package.json index b813dcc10c..32a3722dc2 100644 --- a/typescript/opensearch/os_vpc_provision/package.json +++ b/typescript/opensearch/os_vpc_provision/package.json @@ -14,14 +14,14 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3", "constructs": "^10.2.43" }, "dependencies": { "aws-cdk": "^2.102.0", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/quicksight/package.json b/typescript/quicksight/package.json index 0496ae82a6..27f51dcf32 100644 --- a/typescript/quicksight/package.json +++ b/typescript/quicksight/package.json @@ -12,14 +12,14 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/r53-resolver/package.json b/typescript/r53-resolver/package.json index 4668148699..1c6f4abcca 100644 --- a/typescript/r53-resolver/package.json +++ b/typescript/r53-resolver/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", @@ -21,7 +21,7 @@ }, "dependencies": { "@aws-cdk/aws-route53resolver-alpha": "^2.133.0-alpha.0", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/rds/aurora/package.json b/typescript/rds/aurora/package.json index 0a2d72ab33..4f7466fe05 100644 --- a/typescript/rds/aurora/package.json +++ b/typescript/rds/aurora/package.json @@ -13,13 +13,13 @@ "@types/jest": "^29.5.14", "@types/node": "22.7.9", "jest": "^29.7.0", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/rds/mysql/package.json b/typescript/rds/mysql/package.json index c53209b013..1810636462 100644 --- a/typescript/rds/mysql/package.json +++ b/typescript/rds/mysql/package.json @@ -15,12 +15,12 @@ "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "esModuleInterop": true, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/rds/oracle/package.json b/typescript/rds/oracle/package.json index 2c922f786a..0b69403600 100644 --- a/typescript/rds/oracle/package.json +++ b/typescript/rds/oracle/package.json @@ -13,13 +13,13 @@ "@types/jest": "^29.5.14", "@types/node": "22.7.9", "jest": "^29.7.0", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/rekognition-lambda-s3-trigger/package.json b/typescript/rekognition-lambda-s3-trigger/package.json index 3c5852cdb4..22fe89ae38 100644 --- a/typescript/rekognition-lambda-s3-trigger/package.json +++ b/typescript/rekognition-lambda-s3-trigger/package.json @@ -11,14 +11,14 @@ }, "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { "@aws-sdk/client-dynamodb": "^3.538.0", "@aws-sdk/client-rekognition": "^3.535.0", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.16" } diff --git a/typescript/resource-overrides/package.json b/typescript/resource-overrides/package.json index 2f65231a36..6127e72f7b 100644 --- a/typescript/resource-overrides/package.json +++ b/typescript/resource-overrides/package.json @@ -15,12 +15,12 @@ }, "license": "Apache-2.0", "devDependencies": { - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "@types/node": "22.7.9", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/route53-resolver-dns-firewall/package.json b/typescript/route53-resolver-dns-firewall/package.json index 32d63c3260..02a1dcee5b 100644 --- a/typescript/route53-resolver-dns-firewall/package.json +++ b/typescript/route53-resolver-dns-firewall/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/s3-kms-cross-account-replication/package.json b/typescript/s3-kms-cross-account-replication/package.json index 6478c432c6..8f357dc411 100644 --- a/typescript/s3-kms-cross-account-replication/package.json +++ b/typescript/s3-kms-cross-account-replication/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "cdk-nag": "^2.0.0", "jest": "^29.7.0", "prettier": "2.6.2", @@ -22,7 +22,7 @@ "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.16" } diff --git a/typescript/s3-object-lambda/package.json b/typescript/s3-object-lambda/package.json index 9ccdb48915..dddd05be89 100644 --- a/typescript/s3-object-lambda/package.json +++ b/typescript/s3-object-lambda/package.json @@ -11,13 +11,13 @@ }, "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { "@aws-sdk/client-s3": "^3.537.0", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/s3-sns-lambda-chain/package.json b/typescript/s3-sns-lambda-chain/package.json index 76bb4c94bb..7bad11500a 100644 --- a/typescript/s3-sns-lambda-chain/package.json +++ b/typescript/s3-sns-lambda-chain/package.json @@ -14,14 +14,14 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" }, "jest": { diff --git a/typescript/secrets-manager-rotation/package.json b/typescript/secrets-manager-rotation/package.json index 8551553eea..b682cab2f0 100644 --- a/typescript/secrets-manager-rotation/package.json +++ b/typescript/secrets-manager-rotation/package.json @@ -17,14 +17,14 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "@aws-cdk/aws-lambda-python-alpha": "*", "constructs": "^10.0.0" } diff --git a/typescript/servicecatalog/portfolio-with-ec2-product/package.json b/typescript/servicecatalog/portfolio-with-ec2-product/package.json index 1e9ff3203a..40e701a9c3 100644 --- a/typescript/servicecatalog/portfolio-with-ec2-product/package.json +++ b/typescript/servicecatalog/portfolio-with-ec2-product/package.json @@ -14,12 +14,12 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ssm-document-association/package.json b/typescript/ssm-document-association/package.json index 7bf28e07f9..af01880151 100644 --- a/typescript/ssm-document-association/package.json +++ b/typescript/ssm-document-association/package.json @@ -14,12 +14,12 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1007.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.189.1", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/static-site-basic/package.json b/typescript/static-site-basic/package.json index c0581ea500..1c2060e82f 100644 --- a/typescript/static-site-basic/package.json +++ b/typescript/static-site-basic/package.json @@ -15,11 +15,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "ts-node": "^10.9.2" } diff --git a/typescript/static-site/package.json b/typescript/static-site/package.json index 1200e02443..e06f615a77 100644 --- a/typescript/static-site/package.json +++ b/typescript/static-site/package.json @@ -15,11 +15,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/stepfunction-external-definition/package.json b/typescript/stepfunction-external-definition/package.json index f83ff9c322..a0f7bdcc25 100644 --- a/typescript/stepfunction-external-definition/package.json +++ b/typescript/stepfunction-external-definition/package.json @@ -11,12 +11,12 @@ }, "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/stepfunctions-job-poller/package.json b/typescript/stepfunctions-job-poller/package.json index de88759163..50cc11f99f 100644 --- a/typescript/stepfunctions-job-poller/package.json +++ b/typescript/stepfunctions-job-poller/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/waf/package.json b/typescript/waf/package.json index df10dc2d54..ffabdf62fa 100644 --- a/typescript/waf/package.json +++ b/typescript/waf/package.json @@ -12,11 +12,11 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1006.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "jest": "^26.4.2", "ts-jest": "^26.2.0", From fabdcc8b4896fd6ddde919b4eef02cf3c7ca3c1f Mon Sep 17 00:00:00 2001 From: Michael Kaiser Date: Fri, 18 Apr 2025 10:56:14 -0500 Subject: [PATCH 4/5] feat: update test to use normalized --- typescript/ec2-instance/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/ec2-instance/tsconfig.json b/typescript/ec2-instance/tsconfig.json index ebe7df3d7e..4dd2f5e761 100644 --- a/typescript/ec2-instance/tsconfig.json +++ b/typescript/ec2-instance/tsconfig.json @@ -32,6 +32,6 @@ ], "include": [ "**/*.ts", - "../../test-utils/**/*.ts" + "../../test-utils/*.ts" ] } From 150382d8e06ae54b7c88edd253c501b3a505422d Mon Sep 17 00:00:00 2001 From: Michael Kaiser Date: Fri, 18 Apr 2025 11:09:26 -0500 Subject: [PATCH 5/5] feat: update test to use normalized --- .../package.json | 4 +-- typescript/ec2-instance/package.json | 26 ++++++------------- typescript/ec2-instance/tsconfig.dev.json | 14 ---------- typescript/ec2-instance/tsconfig.json | 2 +- 4 files changed, 11 insertions(+), 35 deletions(-) delete mode 100644 typescript/ec2-instance/tsconfig.dev.json diff --git a/typescript/ec2-instance-connect-endpoint/package.json b/typescript/ec2-instance-connect-endpoint/package.json index 01f4bf5861..e790bb54c7 100644 --- a/typescript/ec2-instance-connect-endpoint/package.json +++ b/typescript/ec2-instance-connect-endpoint/package.json @@ -33,7 +33,7 @@ "constructs": "^10.0.5" }, "dependencies": { - "aws-cdk-lib": "2.189.1", - "constructs": "10.0.5" + "aws-cdk-lib": "2.190.0", + "constructs": "^10.0.0" } } diff --git a/typescript/ec2-instance/package.json b/typescript/ec2-instance/package.json index 7644ae0893..188d49bf15 100644 --- a/typescript/ec2-instance/package.json +++ b/typescript/ec2-instance/package.json @@ -11,27 +11,17 @@ "cdk": "cdk" }, "devDependencies": { - "@types/jest": "^29.5.14", - "@types/node": "22.7.9", - "@typescript-eslint/eslint-plugin": "^5", - "@typescript-eslint/parser": "^5", + "@types/jest": "^29.5.3", + "@types/node": "^16", "aws-cdk": "2.1010.0", - "esbuild": "^0.18.17", - "eslint": "^8", - "eslint-import-resolver-node": "^0.3.7", - "eslint-import-resolver-typescript": "^3.5.5", - "eslint-plugin-import": "^2.28.0", - "jest": "^29.7.0", - "jest-junit": "^15", - "npm-check-updates": "^16", - "projen": "^0.71.158", - "ts-jest": "^29.2.5", - "ts-node": "^10.9.2", - "typescript": "~5.6.3" + "jest": "^29.6.2", + "ts-jest": "^29.1.1", + "ts-node": "^10.9.1", + "typescript": "^5.1.6" }, "dependencies": { - "aws-cdk-lib": "2.190.0", - "constructs": "^10.0.0", + "aws-cdk-lib": "2.189.0", + "constructs": "^10.0.5", "dotenv": "^16.3.1" }, "license": "MIT-0" diff --git a/typescript/ec2-instance/tsconfig.dev.json b/typescript/ec2-instance/tsconfig.dev.json deleted file mode 100644 index f560eba0bd..0000000000 --- a/typescript/ec2-instance/tsconfig.dev.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "rootDir": "../..", - "baseUrl": ".", - "paths": { - "../../../test-utils/*": ["../../../test-utils/*"] - } - }, - "include": [ - "**/*.ts", - "../../../test-utils/**/*.ts" - ] -} diff --git a/typescript/ec2-instance/tsconfig.json b/typescript/ec2-instance/tsconfig.json index 4dd2f5e761..ebe7df3d7e 100644 --- a/typescript/ec2-instance/tsconfig.json +++ b/typescript/ec2-instance/tsconfig.json @@ -32,6 +32,6 @@ ], "include": [ "**/*.ts", - "../../test-utils/*.ts" + "../../test-utils/**/*.ts" ] }