Skip to content
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

[Enhancement]: Need to add support for new lambda runtime provided.al2023 #34360

Closed
gwsu2008 opened this issue Nov 11, 2023 · 4 comments
Closed
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/lambda Issues and PRs that pertain to the lambda service.
Milestone

Comments

@gwsu2008
Copy link

Description

Currently aws provider lambda custom runtime does not support provided.al2023. This is a new custom lambda runtime from AWS.
https://docs.aws.amazon.com/lambda/latest/dg/runtimes-custom.html

image

Initializing provider plugins...
- Reusing previous version of hashicorp/aws from the dependency lock file
- Using previously-installed hashicorp/aws v5.25.0

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
Releasing state lock. This may take a few moments...
╷
│ Error: expected runtime to be one of ["nodejs" "nodejs4.3" "nodejs6.10" "nodejs8.10" "nodejs10.x" "nodejs12.x" "nodejs14.x" "nodejs16.x" "java8" "java8.al2" "java11" "python2.7" "python3.6" "python3.7" "python3.8" "python3.9" "dotnetcore1.0" "dotnetcore2.0" "dotnetcore2.1" "dotnetcore3.1" "dotnet6" "nodejs4.3-edge" "go1.x" "ruby2.5" "ruby2.7" "provided" "provided.al2" "nodejs18.x" "python3.10" "java17" "ruby3.2" "python3.11" "nodejs20.x"], got provided.al2023
│
│   with aws_lambda_function.yopass,
│   on lambda.tf line 30, in resource "aws_lambda_function" "yopass":
│   30:   runtime = "provided.al2023"
│

Affected Resource(s) and/or Data Source(s)

provider version: aws v5.25.0

Potential Terraform Configuration

No response

References

No response

Would you like to implement a fix?

None

@gwsu2008 gwsu2008 added the enhancement Requests to existing resources that expand the functionality or scope. label Nov 11, 2023
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/lambda Issues and PRs that pertain to the lambda service. label Nov 11, 2023
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Nov 11, 2023
@acwwat
Copy link
Contributor

acwwat commented Nov 12, 2023

Some observations: This custom runtime was added only a few days ago. See Introducing the Amazon Linux 2023 runtime for AWS Lambda. It looks like the Go SDK change made it to v1.47.8 and the PR #34331 to upgrade the dependency for the provider is already merged and targeted for v5.26.0.

@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Nov 14, 2023
@ewbankkit ewbankkit added this to the v5.26.0 milestone Nov 14, 2023
Copy link

This functionality has been released in v5.26.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/lambda Issues and PRs that pertain to the lambda service.
Projects
None yet
Development

No branches or pull requests

3 participants