Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formalize MongoDB deployment #7514

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft

Conversation

MauAraujo
Copy link

Ticket(s) Closed

  • Closes #

Description
This PR adds MongoDB Atlas configurations to Terrafom. This will allow us to manage the db clusters easily and we can deploy them per environment as the rest of the infrastructure.

TODO:

  • Pass Mongo api key via Github secrets
  • Pass user and password via secrets/GHA
  • Update GHA to set environment vars before running terraform commands

Implementation
I used the mongodbatlas terraform provider to add all necessary configurations.

Documentation & Tests Added

Testing Instructions

PR Checklist

  • Did the PR author fully test this PR end-to-end?
  • Did one PR reviewer fully test this PR end-to-end?
  • Did one PR reviewer conduct a thorough code design review?

@github-actions github-actions bot added 📁 Repo: infrastructure This PR/Issue modifies /infrastructure 📁 Repo: backend This PR/Issue modifies /backend code labels Nov 30, 2022
@@ -0,0 +1,52 @@
resource "mongodbatlas_advanced_cluster" "dashboard_cluster" {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this run in our AWS or its in MongoDB? Could I get access to it?

Copy link
Author

@MauAraujo MauAraujo Dec 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it runs on MongoDB Atlas, but you can select which cloud provider(s) to use. I created an account for the demo, but when we formalize the deploy we should have an organization account. You can monitor the cluster from that page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📁 Repo: backend This PR/Issue modifies /backend code 📁 Repo: infrastructure This PR/Issue modifies /infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants