Assign AWS Elastic beanstalk as a trusted source

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?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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: