terraform-aws-modules / terraform-aws-lambda

Terraform module, which takes care of a lot of AWS Lambda/serverless tasks (build dependencies, packages, updates, deployments) in countless combinations πŸ‡ΊπŸ‡¦
https://registry.terraform.io/modules/terraform-aws-modules/lambda/aws
Apache License 2.0
886 stars 656 forks source link

Not being able to use nodejs20.x as runtime #533

Closed rebonat0 closed 5 months ago

rebonat0 commented 5 months ago

Is your request related to a new offering from AWS?

Is this functionality available in the AWS provider for Terraform? See CHANGELOG.md, too.

Is your request related to a problem? Please describe.

I'm not being able to use nodejs20.x runtime on terraform-aws-modules/lambda/aws, it's not available yet?

Describe the solution you'd like.

Describe alternatives you've considered.

Additional context

antonbabenko commented 5 months ago

Did you try to specify the correct runtime value?

https://github.com/terraform-aws-modules/terraform-aws-lambda/blob/dcb087d610a294d9c5a29930d8a11a7ab8d4d07e/examples/complete/main.tf#L25

rebonat0 commented 5 months ago

Hi @antonbabenko , thank's for asking!

Yeah, I tried to use runtime = "nodejs20.x" Here's a screenshot with the error that I got: image

antonbabenko commented 5 months ago

Make sure that you are using Terraform AWS provider version 5.26.0 or newer.

https://github.com/hashicorp/terraform-provider-aws/pull/34401 https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md#5260-november-16-2023

github-actions[bot] commented 4 months ago

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.