You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you include your function source inline with the ZipFile parameter, CloudFormation places it in a file named index and zips it to create a deployment package. CloudFormation automatically adds the .js extension, which is no longer the default for version 18.x.
When creating a Lambda function in the Management Console with Node.js 18.x, an index.mjs is created correctly by default.
It would be nice to see CloudFormation create an index.mjs instead of an index.js when nodejs18.x runtime is defined.
Other Details
No response
The text was updated successfully, but these errors were encountered:
Name of the resource
AWS::Lambda::Function
Resource name
No response
Description
When you include your function source inline with the ZipFile parameter, CloudFormation places it in a file named index and zips it to create a deployment package. CloudFormation automatically adds the .js extension, which is no longer the default for version 18.x.
When creating a Lambda function in the Management Console with Node.js 18.x, an index.mjs is created correctly by default.
It would be nice to see CloudFormation create an index.mjs instead of an index.js when nodejs18.x runtime is defined.
Other Details
No response
The text was updated successfully, but these errors were encountered: