Hi,
Since the v0.6.15 release terraform cannot reassociate elastic IPs.
Fails on Terraform v0.6.15
Succeeds on Terraform v0.6.14
Changing config from:
resource "aws_eip" "default" {
vpc = true
instance = "${aws_instance.instance_a.id}"
}
to:
resource "aws_eip" "default" {
vpc = true
instance = "${aws_instance.instance_b.id}"
}
The EIP should be reassociated with the new instance
Terraform fails with:
aws_eip.default: Failure associating EIP: InvalidParameterValue: 10.x.x.x is not mapped to the interface eni-xxxxxxxx
aws_eip.instance to a new valueterraform applyAlso affected by this
Ran in to this as well.
@cstruct Thanks for taking the time to write up a thorough bug report. I wasn't certain if I was doing something stupid with AWS or if this was an issue...
Hey @cstruct thanks for opening this!
private_ip in your EIP resource, you'll need to use the new associate_with_private_ip attribute that's added in that pull requestThank you @catsby
I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.