Update aws_eip validation and documentation to prevent tagging non-VPC EIPs #14987
Labels
bug
Addresses a defect in current functionality.
documentation
Introduces or discusses updates to documentation.
service/ec2
Issues and PRs that pertain to the ec2 service.
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Tagging of aws_eip resources.
Actual Behavior
Resources created: VPC and non-VPC aws_eip
Resources tagged: VPC aws_eip
Resources not tagged: non-VPC aws_eip
Steps to Reproduce
terraform apply
Important Factoids
These are non-VPC aws_eip. They will not be associated to an ENI. They are for allocating globally unique addresses to be used within an EC2 VPN appliance as destination NAT addresses for partner VPN connections to address towards. Allocating non-VPC aws_eip should serve as a guardrail for preventing accidental ENI association.
The text was updated successfully, but these errors were encountered: