Score:0

How to get public static IP of my AWS VPC?

cn flag

My services are hosted in AWS VPC. I use VPN to access my servers. For using a third party service I need to whitelist my public static IP address on their site. How can I get my public static IP address?

cn flag
What kind of VPN? Site-to-site, or client?
cn flag
Also, what would be talking to the third party website? You may need to give us more information about your AWS architecture.
Shahrear Bin Amin avatar
cn flag
We will make http request to the third-party server (REST backend) from our REST backend. Our backend runs on ECS.
cn flag
You'll need the public IP of whatever gateway(s) ECS uses to reach the internet, so either an Internet Gateway or a NAT gateway. This will have an Elastic IP Address which is static until dissociated from the VPC (I believe).
Score:1
gp flag
Tim

Create a NAT Gateway, with an associated Elastic IP address. The Elastic IP is static and remains allocated to your NAT Gateway / account until you release it.

A NAT Gateway is highly available, but is within one subnet. If your solution is highly available your best option is to create an Elastic IP and NAT Gateway in each subnet, and route each subnet to the NAT Gateway in that subnet.

Give you Elastic IP address(s) to your third party service.

A cheaper solution is to use a NAT instance, but these are not highly available and need to be managed / patched / etc by you.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.