steady_progress
steady_progress

Reputation: 3731

Where can I find the IP address or CIDR notation of my Elastic Beanstalk app?

My web application is deployed on AWS Elastic Beanstalk and is supposed to access a mongodb database deployed on mongodb Atlas.

In order to make database queries possible, I have to whitelist the IP addresses of the servers accessing the database:

enter image description here

The problem is that I can find nowhere the IP address of my app.

Where can I find the IP address of my app?

Upvotes: 0

Views: 880

Answers (1)

jarmod
jarmod

Reputation: 78573

You cannot control the public IP addresses of your Elastic Beanstalk instances so you cannot whitelist them with your hosted MongoDB provider.

Your best option is probably to use NAT for egress and associate static IP(s) (Elastic IP) with your NAT instance(s). Here's an example.

Upvotes: 2

Related Questions