Provision MongoDB Atlas Cluster #69

Closed
opened 2025-10-25 19:35:59 +00:00 by GFMpt13 · 0 comments
GFMpt13 commented 2025-10-25 19:35:59 +00:00 (Migrated from github.com)

Objective

After the database schemas have been modeled. This task is to provision the actual cloud database infrastructure so the backend team can connect and begin development.

We will use MongoDB Atlas to create a managed, highly-available cluster. This will provide a persistent database accessible to our backend services.

Tasks

  • 1. Create Atlas Project:

    • Create a new project within the organization's MongoDB Atlas account, named StArranja.
  • 2. Provision Cluster:

    • Provision a new cluster (e.g., starranja-dev).
    • Use the free-tier M0 Sandbox cluster for this initial development phase.
    • Select a cloud provider and region.
  • 3. Configure Database User:

    • Create a new database user for the backend application (e.g., starranja_app_user).
    • Grant this user Read and write to any database permissions.
    • Generate a strong, secure password for this user.
  • 4. Configure Network Access:

    • Configure the Network Access IP Allowlist.
    • For initial development, add 0.0.0.0/0 (Allow Access from Anywhere).
    • Security Note: Add a comment // TODO: Restrict this IP to the production server's static IP before go-live.
  • 5. Retrieve Connection String:

    • Get the cluster's connection string (select "Drivers" or "Connect your application").
    • Ensure it's the mongodb+srv://... format.
  • 6. Securely Store Credentials:

    • Store the full connection string (with the generated password) in the project's secret management system (.env.development file).
    • Do not commit the password or connection string to the Git repository.

Definition of Done

  • A new M0 cluster is provisioned and active on MongoDB Atlas.
  • The backend team has access to the secure connection string and can successfully connect to the database.
### Objective After the database schemas have been modeled. This task is to provision the actual cloud database infrastructure so the backend team can connect and begin development. We will use **MongoDB Atlas** to create a managed, highly-available cluster. This will provide a persistent database accessible to our backend services. ### Tasks - [x] 1. **Create Atlas Project:** - [x] Create a new project within the organization's MongoDB Atlas account, named `StArranja`. - [x] 2. **Provision Cluster:** - [x] Provision a new cluster (e.g., `starranja-dev`). - [x] Use the free-tier `M0 Sandbox` cluster for this initial development phase. - [x] Select a cloud provider and region. - [x] 3. **Configure Database User:** - [x] Create a new database user for the backend application (e.g., `starranja_app_user`). - [x] Grant this user `Read and write to any database` permissions. - [x] Generate a strong, secure password for this user. - [x] 4. **Configure Network Access:** - [x] Configure the Network Access IP Allowlist. - [x] For initial development, add `0.0.0.0/0` (Allow Access from Anywhere). - [x] **Security Note:** Add a comment `// TODO: Restrict this IP to the production server's static IP before go-live.` - [x] 5. **Retrieve Connection String:** - [x] Get the cluster's connection string (select "Drivers" or "Connect your application"). - [x] Ensure it's the `mongodb+srv://...` format. - [x] 6. **Securely Store Credentials:** - [x] Store the full connection string (with the generated password) in the project's secret management system (.env.development file). - [x] **Do not** commit the password or connection string to the Git repository. ### Definition of Done - [x] A new `M0` cluster is provisioned and active on MongoDB Atlas. - [x] The backend team has access to the secure connection string and can successfully connect to the database.
Sign in to join this conversation.
No description provided.