Skip to content

Incorrect AWS provider version requirement #181

@cflanny

Description

@cflanny

Describe the Bug

The AWS provider requirement is still listed as >=2.x, but creating an instance with this module with an AWS provider version <5.x will result in the error Can't configure a value for "domain": its value will be decided automatically based on the result of applying this configuration. due to attempting to set the "domain" value on main.tf:181

Expected Behavior

No errors about setting derived attributes that can't be set or overridden in any way without back-versioning the module to a version where this line doesn't exist

Steps to Reproduce

Attempt to create an instance using this module, with AWS provider <5.x

Screenshots

╷
│ Error: Value for unconfigurable attribute
│ 
│   with module.ec2_zscaler.aws_eip.additional,
│   on .terraform/modules/ec2_zscaler/eni.tf line 29, in resource "aws_eip" "additional":
│   29:   domain            = "vpc"
│ 
│ Can't configure a value for "domain": its value will be decided
│ automatically based on the result of applying this configuration.
╵
╷
│ Error: Value for unconfigurable attribute
│ 
│   with module.ec2_zscaler.aws_eip.default,
│   on .terraform/modules/ec2_zscaler/main.tf line 181, in resource "aws_eip" "default":
│  181:   domain   = "vpc"
│ 
│ Can't configure a value for "domain": its value will be decided
│ automatically based on the result of applying this configuration.
╵

Environment

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug🐛 An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions