Skip to content

Unsupported attribute - Region #1203

@rhysmcn

Description

@rhysmcn

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:

  1. Remove the local .terraform directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!): rm -rf .terraform/
  2. Re-initialize the project root to pull down modules: terraform init
  3. 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:

  1. Run terraform init
  2. terraform plan

We get this error, which is above.

Expected behavior

plans to work

Actual behavior

plans failing

Terminal Output Screenshot(s)

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions