awsdocs / aws-doc-sdk-examples

Welcome to the AWS Code Examples Repository. This repo contains code examples used in the AWS documentation, AWS SDK Developer Guides, and more. For more information, see the Readme.md file below.
Apache License 2.0
9.4k stars 5.6k forks source link

[EPIC]: CDK - Update CDK scripts to CDK v2 #4937

Open Laren-AWS opened 1 year ago

Laren-AWS commented 1 year ago

This might need to be an epic. It's a tech debt task to verify all of the CDK scripts in /resources/cdk to determine whether they use CDK v1 or v2, and if they use v1 they must be updated to v2.

(We also need to establish a policy for maintaining and testing these CDK scripts over time so they don't expire.)

The motivation for this is that v1 is past end of support:

19836 AWS CDK v1 End-of-Support June 1, 2023

Overview: AWS CDK v1 is currently in maintenance mode. Support for AWS CDK v1 will end entirely on June 1, 2023. Migrate to AWS CDK v2 to continue to get the latest features and fixes!

beqqrry-aws commented 1 year ago

CDK

DavidSouther commented 1 year ago
for f in $(find . -depth 2 -name package.json) ; do CDK=$(jq '(.dependencies * .devDependencies)["aws-cdk"]' $f) ; echo "$f\t$CDK" ; done
./ecr_repositories/package.json "2.44.0"
./python_example_code_apigateway_websocket/package.json "1.77.0"
./dynamodb-ruby-example-create-users-table/package.json "^1.88.0"
./s3-ruby-example-create-bucket/package.json    "1.87.1"
./aurora_serverless_app/package.json    null
./javascript_example_code_polly_aws_service/package.json    "1.77.0"
./submit-data-app-unauthenticated-role/package.json "1.87.1"
./lex_bot_example_iam_unauth_role/package.json  "1.87.1"
./rekognition-sns-video-analyzer/package.json   "1.87.1"
./dynamodb-item-tracker/package.json    null
./python_example_code_stepfunctions_demo/package.json   "^1.85.0"
./glue_role_bucket/package.json null
./rekognition-unauthrole/package.json   "1.87.1"
./textract_example_s3_sns_sqs_cognito/package.json  "^1.98.0"
./lambda_using_scheduled_events/package.json    "1.87.1"
./textract_example_s3_sns_sqs/package.json  "^1.203.0"
./cognito_scenario_user_pool_with_mfa/package.json  null
./kinesis-iam-unauthenticated-role/package.json "1.87.1"
./lambda_api_step_functions/package.json    "1.87.1"
./javascript_example_lambda_aws_service/package.json    "1.77.0"
./python_example_code_secretsmanager_demo/package.json  "1.77.0"
./python_example_code_apigateway_aws_service/package.json   "1.77.0"
./javascript_example_code_transcribe_demo/package.json  "1.77.0"
./transcribe-streaming-unauth-role/package.json "1.87.1"
./lambda_using_api_gateway/package.json "1.87.1"
./iam-ruby-example-add-new-user/package.json    "1.87.1"
./dynamodb_ruby_example_create_movies_table/package.json    "1.87.1"
./messaging-app-unauthenticated-role-sqs-fifo-queue/package.json    "1.87.1"
./kinesis-example-create-stream/package.json    "1.77.0"