From 619f018c9d022cc99bf7d830c7f197c520010a9f Mon Sep 17 00:00:00 2001 From: Kendra Neil <53584728+TheRealAmazonKendra@users.noreply.github.com> Date: Wed, 13 Sep 2023 12:16:59 -0700 Subject: [PATCH 1/6] chore: update cdk migrate command to allow for stack name input and additional languages This change updates use of noctilucent to cdk-from-cfn and installs it from npm. It also adds some additional language support and stack renaming. --- packages/@aws-cdk/cli-lib-alpha/generate.sh | 16 --- packages/@aws-cdk/cli-lib-alpha/package.json | 5 +- packages/aws-cdk/.eslintrc.js | 1 - packages/aws-cdk/.gitignore | 4 - packages/aws-cdk/.npmignore | 2 - packages/aws-cdk/THIRD_PARTY_LICENSES | 4 + packages/aws-cdk/generate.sh | 16 --- packages/aws-cdk/lib/cli.ts | 16 ++- packages/aws-cdk/lib/commands/migrate.ts | 115 ++++++++++-------- .../%name.PascalCased%/Program.template.cs | 2 +- .../%name.PascalCased%/Program.template.fs | 2 +- .../init-templates/app/go/%name%.template.go | 2 +- .../myorg/%name.PascalCased%App.template.java | 2 +- .../app/javascript/bin/%name%.template.js | 2 +- .../init-templates/app/python/app.template.py | 2 +- .../app/typescript/bin/%name%.template.ts | 2 +- .../%name.PascalCased%/Program.template.cs | 2 +- .../%name.PascalCased%/Program.template.fs | 2 +- .../sample-app/go/%name%.template.go | 2 +- .../myorg/%name.PascalCased%App.template.java | 2 +- .../javascript/bin/%name%.template.js | 2 +- .../sample-app/python/app.template.py | 2 +- .../typescript/bin/%name%.template.ts | 2 +- packages/aws-cdk/lib/init.ts | 29 ++++- .../aws-cdk/lib/vendor/noctilucent/.keepdir | 0 packages/aws-cdk/package.json | 7 +- packages/aws-cdk/test/init.test.ts | 1 - yarn.lock | 5 + 28 files changed, 122 insertions(+), 127 deletions(-) delete mode 100755 packages/@aws-cdk/cli-lib-alpha/generate.sh delete mode 100644 packages/aws-cdk/lib/vendor/noctilucent/.keepdir diff --git a/packages/@aws-cdk/cli-lib-alpha/generate.sh b/packages/@aws-cdk/cli-lib-alpha/generate.sh deleted file mode 100755 index e5ea04d12acd8..0000000000000 --- a/packages/@aws-cdk/cli-lib-alpha/generate.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -set -euo pipefail - -commit=${CODEBUILD_RESOLVED_SOURCE_VERSION:-} -# CODEBUILD_RESOLVED_SOURCE_VERSION is not defined (i.e. local build or CodePipeline build), -# use the HEAD commit hash -if [ -z "${commit}" ]; then - commit="$(git rev-parse --verify HEAD)" -fi - -cat > build-info.json </dev/null 2>/dev/null build-info.json <