(Hotswap): CDK v2 Hotswapping support for SAM.CfnFunction #20021
Labels
effort/medium
Medium work item – several days of effort
feature/enhancement
A new API to make things easier or more intuitive. A catch-all for general feature requests.
feature-request
A feature should be added or improved.
hotswap
p3
package/tools
Related to AWS CDK Tools or CLI
Describe the feature
Currently it looks like the only way hotswap will support a lambda is if it is of resource type
AWS::Lambda::Function
-aws-cdk/packages/aws-cdk/lib/api/hotswap/lambda-functions.ts
Line 92 in 5024021
Use Case
We currently use SAM.CfnFunction since it gets us gradual deployments of our lambdas.
We don't want to lose our ability to do gradual deployments with lambda,. As such we're stuck choosing between hot swapping or gradual deployments in the current state of CDK v2.
Proposed Solution
Add support for
AWS::Serverless::Function
for hot swapping.Other Information
No response
Acknowledgements
CDK version used
2.20.0
Environment details (OS name and version, etc.)
MacOS 12.3.1
The text was updated successfully, but these errors were encountered: