terraform-aws-lambda icon indicating copy to clipboard operation
terraform-aws-lambda copied to clipboard

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

Open melissarh57 opened this issue 3 years ago β€’ 2 comments

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

  • Module version [3.3.1]:

=- 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"

melissarh57 avatar Aug 10 '22 20:08 melissarh57

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.

jonohill avatar Aug 10 '22 23:08 jonohill

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

melissarh57 avatar Aug 11 '22 02:08 melissarh57

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

antonbabenko avatar Sep 01 '22 08:09 antonbabenko

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[bot] avatar Nov 08 '22 02:11 github-actions[bot]