-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Description
Description
I have been working internally within my company deploying resources, and today I have been hit with an issue directly related to the latest changes merged this morning.
│ Error: Unsupported attribute
│
│ on .terraform/modules/iriusrisk_environment.iriusrisk_network.vpc/vpc-flow-logs.tf line 28, in locals:
│ 28: "arn:${data.aws_partition.current[0].partition}:logs:${data.aws_region.current[0].region}:${data.aws_caller_identity.current[0].account_id}:log-group:${log_group.name}:*"
│
│ This object has no argument, nested block, or exported attribute named
│ "region".
╵
Please, can you fix this ASAP, as we (like many others) pin to use the latest minor release of this module.
I believe the issue here is that we didnt consider backwards compatibility when making the change.
If your request is for a new feature, please use the Feature request template.
- ✋ I have searched the open/closed issues and my issue is not listed.
⚠️ Note
Before you submit an issue, please perform the following first:
- Remove the local
.terraformdirectory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/ - Re-initialize the project root to pull down modules:
terraform init - Re-attempt your terraform plan or apply and check if the issue still persists
Versions
- Module version [Required]: v5.21.1 <-- this is the issue.
- Tofu version: v1.9.1
- Provider version(s): 5.x.x
Reproduction Code [Required]
We use the latest version of the module, and any time you try to terraform plan with it, it fails
Steps to reproduce the behavior:
We run TF/Tofu in pipelines so it is a clean slate each run. But, essentially:
- Run terraform init
- terraform plan
We get this error, which is above.
Expected behavior
plans to work
Actual behavior
plans failing