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
892 stars 662 forks source link

terraform-aws-modules/lambda/aws V 3.3.1 Isn't working as of Aug 10 #340

Closed melissarh57 closed 1 year ago

melissarh57 commented 1 year ago

Description

Is anyone else running into an issue where terraform-aws-modules/lambda/aws doesn't work as expected as of around Noon CST 8/10/22?

I'm getting errors like

`Error: Unsupported argument

on lambda.tf line 21, in module "lambda_function": 21: function_name = "function-name"

An argument named "function_name" is not expected here.

Error: Unsupported argument

on lambda.tf line 22, in module "lambda_function": 22: description = "description here"

An argument named "description" is not expected here.

Error: Unsupported argument

on lambda.tf line 23, in module "lambda_function": 23: handler = "handlervalue"`

Versions

=- Provider version(s): hashicorp/aws v4.25.0 terraform version: latest v1.2.7

Reproduction Code [Required]

Steps to reproduce the behavior:

Run terraform plan changing anything in the lambda module: terraform-aws-modules/lambda/aws using v 3.3.1

Expected behavior

It should work fine

Actual behavior

Getting tons of errors of passing in attributes when it says the module shouldn't retrieve that attribute: like "function_name"

jonohill commented 1 year ago

I'm getting the same issue today, but it seems be a problem with the new Terraform release https://github.com/hashicorp/terraform/issues/31615 Downgrading to v1.2.6 of Terraform resolves the issue.

melissarh57 commented 1 year ago

Yeah Jono I think you are right. Also, For the aws provider module, I noticed using 3.2 and older works as well. So must be an incompatibility between 3.3.1 and terraform v1.2.7

antonbabenko commented 1 year ago

There was an issue on the Terraform Registry side. It has been resolved.

github-actions[bot] commented 1 year 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.