-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add samples for using hot reloading with terraform, fix role arns #210
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM already 👍
I added a few nits concerning the texts, but nothing is blocking a merge in this case.
It would be great if we could mention which runtimes this should support besides nodejs16.x 🤔
s3_key = "${abspath(path.root)}/lambda_src" | ||
layers = [aws_lambda_layer_version.test_layer.arn] | ||
|
||
runtime = "nodejs16.x" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this wouldn't work with nodejs18.x out of the box right now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not, due to the handler code. Not sure if ES module syntax is required for node18.
Co-authored-by: Dominik Schubert <[email protected]>
Simple terraform + nodejs lambda functions to demonstrate hot-reloading.
Demonstrates
Other changes
__local__
withhot-reload
in all samples, as it is the new default name.r1
) in the samples with complete role arns. Using non-arns as role arns was supported for the old provider, but will not work in the new one, and we should not encourage samples with wrong default values.