Score:0

How to configure Mongo Atlas cluster to be accessible only from AWS ECS?

cn flag

I have a NodeJS application which runs as a container on AWS ECS inside its VPC. For the database I have a cluster on Mongo Atlas. How can I configure Mongo Atlas so that the database is only accessible from ECS IP addreses and not from any other IP?

Right now, ECS is configured to auto-assign a public IP address to my tasks, so there is no fixed public IP address which I can whitelist on Mongo Atlas. So, how can I do this?

Also, is there any benefit in selecting the "auto-assign IP address" for my tasks definitions on ECS?

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.