terraform-aws-s3-bucket icon indicating copy to clipboard operation
terraform-aws-s3-bucket copied to clipboard

Terraform version above 1.2.6 brakes module

Open schrill opened this issue 2 years ago β€’ 3 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.

schrill avatar Aug 11 '22 12:08 schrill

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

jeohist avatar Aug 11 '22 13:08 jeohist

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...

schrill avatar Aug 11 '22 13:08 schrill

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.

thomaskvnze avatar Aug 11 '22 13:08 thomaskvnze

The issue belongs to Terraform 1.2.7 - https://github.com/hashicorp/terraform/issues/31615.

Closing this issue here.

antonbabenko avatar Aug 17 '22 12:08 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 Oct 28 '22 02:10 github-actions[bot]