Skip to content

fix(vpc): use elastic IP for tunnel connection when available#6306

Closed
danielsharvey wants to merge 1 commit intoanomalyco:devfrom
danielsharvey:bugfix/correct-vpc-tunnel-ip
Closed

fix(vpc): use elastic IP for tunnel connection when available#6306
danielsharvey wants to merge 1 commit intoanomalyco:devfrom
danielsharvey:bugfix/correct-vpc-tunnel-ip

Conversation

@danielsharvey
Copy link
Copy Markdown
Contributor

When elastic IPs are configured, use the first elastic IP address for the tunnel connection instead of the bastion instance's public IP. This ensures the tunnel uses the stable NAT instance IP (which gets replaced by the EIP after creation) rather than a potentially changing public IP address.

Addresses #6305.

When elastic IPs are configured, use the first elastic IP address for the
tunnel connection instead of the bastion instance's public IP. This ensures
the tunnel uses the stable NAT instance IP (which gets replaced by the EIP
after creation) rather than a potentially changing public IP address.

Addresses anomalyco#6305.
@jamesgibbons92
Copy link
Copy Markdown
Collaborator

@danielsharvey
The bastion is not given an EIP when the nat is managed, so this doesn't work in that case.
The eip should only be used if nat instances are used, as one of the instances is used as the bastion instead of a standalone ec2.
This was resolved in #5820
But you've rightly pointed out some additional issues when importing the VPC in this issue. I'll fix these in a PR and then close down some of these duplicate PR / issues. Thank you

@jamesgibbons92
Copy link
Copy Markdown
Collaborator

Closing as issues should all be resolved by #6341

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants