1 Answer
- Newest
- Most votes
- Most comments
0
The ZipFile
attribute in CloudFormation only works with scripted language runtimes nodejs and python, since CloudFormation does not / cannot do the "compile" step for you. The clean way is to use S3Key
as you already stated corectly. And then specify new versions with S3ObjectVersion
.
AWS SAM automates these steps for you. Another tool worth a look for compiling/handling Lambdas with CloudFormation is the CDK (golang alpha module).
answered 2 years ago
Relevant content
- Accepted Answerasked 2 months ago
- Why can't I view the EventBridge trigger in my Lambda function that my CloudFormation stack created?AWS OFFICIALUpdated a month ago