terraform-aws-modules / terraform-aws-s3-bucket

Terraform module to create AWS S3 resources 🇺🇦

Home Page:https://registry.terraform.io/modules/terraform-aws-modules/s3-bucket/aws

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform version above 1.2.6 brakes module

schrill opened this issue · comments

Description

For some reason module syntax is no longer valid after upgrade to version 1.2.7, resulting in an error message on every argument that is not expected here.

│ Error: Unsupported argument │ │ on s3.tf line 8, in module "s3_bucket": │ 8: bucket = var.bucket_full_name == "" ? "${var.project_env}.${local.bucket_name}" : var.bucket_full_name │ │ An argument named "bucket" is not expected here.

This is not a problem with the module: hashicorp/terraform#31615
I've worked around it by just getting it from Git instead of the Terraform Module Registry.

Figured that braking changes were probably introduced inside TF it self but since other modules were functioning correctly didn't do much investigation.
Tnx for the link of the issue, pinned TF version to 1.2.6 for now...

We have similar issue. We use a module from the registry. Unfortunately, the module is downloaded, but the submodules used by that module are not, leading to half the module code not being there.

The issue belongs to Terraform 1.2.7 - hashicorp/terraform#31615.

Closing this issue here.

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.