Assign AWS Elastic beanstalk as a trusted source

Posted October 9, 2019 1.9k views
DigitalOcean Managed PostgreSQL Database

I hosting on AWS (Elastic Beanstalk) with a managed postgres db on DO.
For the trusted sources I have used an instance on an ec2 server, but I believe these can change. For now i can connect to the db, but i worry that this wont last - is there a way of ensuring the AWS hosted site is always a trusted source?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Maybe you could assign a static source IP address for your instances in your Elastic Beanstalk environment. That way the outbound traffic would always be coming from this static IP and it would not change: