Bump `aws-cdk-lib` to `2.60.0` or newer in custom resources (v11.0.0)
Is this feature request related to a new or existing Amplify category?
No response
Is this related to another service?
Extensibility
Describe the feature you'd like to request
Version v11.0.0 released support for CDK v2 in the extensibility helper/category. However new custom resources generated with the latest version of the CLI bring a version of aws-cdk-lib that it's over 3 months old (~2.5.3).
Before v11.0.0 it was possible to manually override the CDK version in the custom resource, however now the @aws-amplify/cli-extensibility-helper sets aws-cdk-lib@~2.53.0 as dependency, which prevents us from updating the version in the custom resource.
The main issue here is that this version of aws-cdk-lib is pretty old and notably it's missing the stable version of aws-cdk-lib/aws-appsync, which was released in 2.60.0.
Describe the solution you'd like
It'd be great if in the short term you could update the aws-cdk-lib version to at least 2.60.0, which is the version that promotes the aws-cdk-lib/aws-appsync package to stable.
In the medium/long term, it'd also be great if the custom resource could be more forgiving with the version allowing for overrides, but even just the point above in the next release of the CLI would be great.
Describe alternatives you've considered
None, the fact that @aws-amplify/cli-extensibility-helper also brings a specific version of aws-cdk-lib as direct dependency means we can't install another version in the custom resource as this will equal to have two different CDK versions which breaks stacks (see error below):
Additional context
No response
Is this something that you'd be interested in working on?
- [ ] 👋 I may be able to implement this feature request
Would this feature include a breaking change?
- [ ] ⚠️ This feature might incur a breaking change
+1 having access to a more up-to-date CDK release would be very important to make it usable in my current project.
+1 having access to a more up-to-date CDK release would be very important to make it usable in my current project.
+1
+1 having access to a more up-to-date CDK release would be very important to make it usable in my current project.
+1
+1
+1
+1
Folks, if you can help it, don't just comment +1.
It doesn't further the conversation and it's not nice/respectful towards the maintainers. If you'd like to express support for the feature/issue, use reactions on the OP.
Please expect next minor version update (i.e. 11.1.0) of CLI to be shipped with CDK 2.68.0.
See https://github.com/aws-amplify/amplify-cli/pull/12240 for reference.
Thank you @sobolk and the rest of the team for addressing this.
I for one appreciate the work you're doing and the response to this issue.
Waiting fo this to be merged.
This has shipped with 11.0.3 CLI.
⚠️COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.