amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

Bump `aws-cdk-lib` to `2.60.0` or newer in custom resources (v11.0.0)

Open dreamorosi opened this issue 3 years ago • 12 comments

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):

Screenshot 2023-03-14 at 08 15 08

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

dreamorosi avatar Mar 14 '23 09:03 dreamorosi

+1 having access to a more up-to-date CDK release would be very important to make it usable in my current project.

pbv0 avatar Mar 14 '23 11:03 pbv0

+1 having access to a more up-to-date CDK release would be very important to make it usable in my current project.

+1

LesitoT avatar Mar 14 '23 11:03 LesitoT

+1 having access to a more up-to-date CDK release would be very important to make it usable in my current project.

+1

alevzfdez avatar Mar 14 '23 12:03 alevzfdez

+1

vitrvm avatar Mar 14 '23 13:03 vitrvm

+1

NachoFLizaur avatar Mar 15 '23 09:03 NachoFLizaur

+1

gbiagini97 avatar Mar 15 '23 11:03 gbiagini97

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.

dreamorosi avatar Mar 15 '23 11:03 dreamorosi

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.

sobolk avatar Mar 15 '23 20:03 sobolk

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.

dreamorosi avatar Mar 15 '23 21:03 dreamorosi

Waiting fo this to be merged.

hackmajoris avatar Mar 22 '23 08:03 hackmajoris

This has shipped with 11.0.3 CLI.

sobolk avatar Mar 27 '23 19:03 sobolk

⚠️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.

github-actions[bot] avatar Mar 27 '23 19:03 github-actions[bot]