Closed ejohn20 closed 2 years ago
@ejohn20 - I'm running into the same issue... would be great if you could open a PR for this - thanks!
@matt-f-tsu - PR submitted.
I merged the PR. Thank you @ejohn20 so I'm closing this now.
Follow up oddity. If you try to deploy this using CDK CLI 1.132.0, it will fail with this message:
This CDK CLI is not compatible with the CDK library used by your application. Please upgrade the CLI to the latest version. (Cloud assembly schema version mismatch: Maximum schema version supported is 14.0.0, but found 15.0.0)
Upgrading the aws-cdk
package to v1.134.0 will allow the cdk deploy --require-approval never
command to run successfully.
npm install -g aws-cdk@1.134.0
Perhaps, upgrading to v1.134.0 across the board would be a more consistent solution.
Running the
- cdk deploy --require-approval never
command fails on install due to the nodejs10.x runtime being referenced.Relevant stack trace:
It appears that the CDK custom resources were all upgraded to node12 in v1.84.0 (https://github.com/aws/aws-cdk/commit/29c4943466f4a911f65a2a13cf9e776ade9b8dfe#diff-5670d7468123451376c8589018eaef274d1e20c75c1e93e13daee59c7bd4ad1e), and then again to node14 in v1.111.0 (https://github.com/aws/aws-cdk/commit/1eb6de7913a27874a2c8c382900d6976fe7f0564#diff-5670d7468123451376c8589018eaef274d1e20c75c1e93e13daee59c7bd4ad1e).
Upgrading to the current 1.x version (v1.132.0) seems to address the issue and install cleanly.
Happy to submit a PR for this if that helps.