Closed mxfactorial closed 5 years ago
Sorry for the late response. You can't use this layer with any runtime other than provided
. When you use runtime nodejs10.x
it invoke the node.js bootstrap file, not this one. And I'm sure there's other differences in the environment that I don't know about.
steps
create bucket
save index.js
zip index.js
put zip in s3
save
template.yaml
referencing bash layer innodejs10.x
lambdaprovision template
invoke lambda
observed
*teardown:
aws cloudformation delete-stack --stack-name bash8-layer-bug-on-nodejs10x
aws s3api delete-object --bucket unique-bucket-random-123 --key src.zip
aws s3api delete-bucket --bucket unique-bucket-random-123