Skip to content

Updates MongoDB Atlas Network Access List with the machines current public IP.

License

Notifications You must be signed in to change notification settings

Kailijan/mongo-atlas-ip-updater

Repository files navigation

Mongo IP Updater

Build master

This NodeJS application adds the public ip address of the device it's run on to the Network Access list by using the MongoDB Atlas REST-API.

Setup

  1. Clone this repository
  2. Run npm install to install the dependencies
  3. Generate a MongoDB Atlas API-Key
  4. Grant permissions to your project (Project Owner)
  5. Copy .env.sample to dev.env | prod.env | qa.env and add the desired settings
  6. npm run build to compile typescript
  7. npm run start:[prod|qa|dev] to run the updater on your desired environment

Running the updater as a Linux-Service

TODO: Document setup

About

Updates MongoDB Atlas Network Access List with the machines current public IP.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published