Skip to content

chore: Adds Cluster Module Option1 #3501

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

Open
wants to merge 1 commit into
base: CLOUDP-331089-cluster-module-poc
Choose a base branch
from

Conversation

EspenAlbert
Copy link
Collaborator

Description

Adds Cluster Module Option1

Link to any related issue(s): CLOUDP-331090

Type of change:

  • Bug fix (non-breaking change which fixes an issue). Please, add the "bug" label to the PR.
  • New feature (non-breaking change which adds functionality). Please, add the "enhancement" label to the PR. A migration guide must be created or updated if the new feature will go in a major version.
  • Breaking change (fix or feature that would cause existing functionality to not work as expected). Please, add the "breaking change" label to the PR. A migration guide must be created or updated.
  • This change requires a documentation update
  • Documentation fix/enhancement

Required Checklist:

  • I have signed the MongoDB CLA
  • I have read the contributing guides
  • I have checked that this change does not generate any credentials and that they are NOT accidentally logged anywhere.
  • I have added tests that prove my fix is effective or that my feature works per HashiCorp requirements
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code
  • If changes include deprecations or removals I have added appropriate changelog entries.
  • If changes include removal or addition of 3rd party GitHub actions, I updated our internal document. Reach out to the APIx Integration slack channel to get access to the internal document.

Further comments

@EspenAlbert EspenAlbert marked this pull request as ready for review July 16, 2025 14:45
@Copilot Copilot AI review requested due to automatic review settings July 16, 2025 14:45
@EspenAlbert EspenAlbert requested a review from a team as a code owner July 16, 2025 14:45
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a complete “option1-full-expose” example module demonstrating how to configure a MongoDB Atlas cluster with all available inputs exposed.

  • Introduces an example vars.example.tfvars showcasing sample values for all variables.
  • Adds variables.tf, main.tf, and output.tf to declare, instantiate, and expose outputs of mongodbatlas_advanced_cluster.
  • Includes providers.tf to pin the Atlas provider and Terraform version.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
examples/modules/option1-full-expose/vars.example.tfvars Sample tfvars file with placeholders for cluster variables
examples/modules/option1-full-expose/variables.tf Definition of all module variables with types, nullability, and defaults
examples/modules/option1-full-expose/providers.tf Required provider block for MongoDB Atlas and Terraform version constraint
examples/modules/option1-full-expose/main.tf Resource instantiation mapping each variable to the mongodbatlas_advanced_cluster
examples/modules/option1-full-expose/output.tf Outputs for key attributes from the created cluster
Comments suppressed due to low confidence (2)

examples/modules/option1-full-expose/vars.example.tfvars:16

  • [nitpick] Add a comment or placeholder indicating users should replace this hard-coded project_id with their own MongoDB Atlas project ID.
project_id   = "664619d870c247237f4b86a6"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant