aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.61k stars 3.91k forks source link

Hotswap + AppSync: Support for Hotswapping AppSync Resolvers and Functions with Code instead of VTL templates #24111

Open alharris-at opened 1 year ago

alharris-at commented 1 year ago

Describe the feature

In 2022, AppSync launched support for Code-based resolvers, initially supporting Javascript runtimes. https://docs.aws.amazon.com/appsync/latest/devguide/resolver-reference-overview-js.html. It looks like Code-based resolvers don't work with Hotswap, which we'd like to enable for easier iteration by customers.

Use Case

I'd love to have a more fluid iteration experience while working on the business logic for my AppSync APIs.

Proposed Solution

Add 'RUNTIME' and 'CODE' to hotswap capable parameters for AppSync Resolvers and Functions.

Draft PR (which hardcodes the runtime while I was testing) is here https://github.com/aws/aws-cdk/commit/fa43af180174a56f52c04acbd8ca3e2da83dd93a though we'll need to figure out why it complains about the 'runtime' input being invalid, and add tests.

Other Information

No response

Acknowledgements

CDK version used

2.64.0

Environment details (OS name and version, etc.)

osx 13.2

HenrikFricke commented 1 year ago

I'd love to see that feature 🙏