Specifying nodejs10.x
as function runtime currently results in validation error:
$ terraform -v
Terraform v0.11.13
+ provider.aws v2.10.0
$ terraform apply
Error: module.default.aws_lambda_function.default: expected runtime to be one of [dotnetcore1.0 dotnetcore2.0 dotnetcore2.1 go1.x java8 nodejs4.3 nodejs4.3-edge nodejs6.10 nodejs8.10 provided python2.7 python3.6 python3.7 ruby2.5], got nodejs10.x
resource "aws_lambda_function" "default" {
function_name = "MyFunction"
...
runtime = "nodejs10.x"
}
I've got a PR open to add support here: #8622
Support for the new nodejs10.x
runtime in the aws_lambda_function
resource has been merged and will be released with version 2.11.0 of the Terraform AWS Provider later this week. 👍
This has been released in version 2.11.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
The docs should be updated to reflect support for the new nodejs version (nodejs8 is being deprecated).
https://www.terraform.io/docs/providers/aws/r/lambda_function.html#basic-example
I clicked edit this page
but could not understand where to make the change.
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!
Most helpful comment
Support for the new
nodejs10.x
runtime in theaws_lambda_function
resource has been merged and will be released with version 2.11.0 of the Terraform AWS Provider later this week. 👍