Skip to content

Version 5.21.1 breaks backwards compatability #1201

@thebeanogamer

Description

@thebeanogamer

Description

#1200 switches from the deprecated name attribute to the new region attribute. However, this attribute was only introduced in version 6 of the provider and the required_providers block still allows for usage of v5. When used with v5, the module fails to compile.

https://github.com/terraform-aws-modules/terraform-aws-vpc/blob/master/versions.tf#L4-L8

  • ✋ I have searched the open/closed issues and my issue is not listed.

Versions

  • Module version [Required]: 5.21.1

  • Terraform version: 1.12.2

  • Provider version(s): 5.92.0

Reproduction Code [Required]

Any invocation of the module will trigger this

Expected behavior

Terraform should compile without error

Actual behavior

╷
│ Error: Unsupported attribute
│ 
│   on .terraform/modules/test.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".
╵

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