Performing DNAT for AWS EC2 instance

772 views Asked by At

Is there any way to perform DNAT for AWS EC2 instances? I am trying to allocate one public ip and then associate this ip with any instance under my public subnet. We can perform similar action in VMware's NSX using DNAT rules but don't find it's equivalent in AWS.

1

There are 1 answers

2
Mark B On BEST ANSWER

An AWS Elastic IP is a static public IP address that can be moved between any of your EC2 instances. AWS is using NAT behind the scenes to make that work.

If you want an AWS Elastic IP to point to more than one of your EC2 instances at the same time, you can assign it to an AWS Network Load Balancer.