Skip to content

doc: DOCSP-53419 Update doc for MongoDB::Atlas::Cluster CFN resource#1439

Merged
QuiqueSanMongo merged 4 commits intomasterfrom
DOCSP-53419
Sep 15, 2025
Merged

doc: DOCSP-53419 Update doc for MongoDB::Atlas::Cluster CFN resource#1439
QuiqueSanMongo merged 4 commits intomasterfrom
DOCSP-53419

Conversation

@QuiqueSanMongo
Copy link
Copy Markdown
Contributor

Proposed changes

Link to any related issue(s): https://jira.mongodb.org/browse/CLOUDP-286685

Type of change:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as
    expected)
  • This change requires a documentation update
  • 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.

Manual QA performed:

  • cfn invoke for each of CRUDL/cfn test
  • Updated resource in example
  • Published to AWS private registry
  • Used the template in example to create and update a stack in AWS
  • Deleted stack to ensure resources are deleted
  • Created multiple resources in same stack
  • Validated in Atlas UI
  • Included screenshots

Required Checklist:

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that this change does not generate any credentials and that they are NOT accidentally logged anywhere.
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code
  • For CFN Resources: I have released by changes in the private registry and proved by change
    works in Atlas

Further comments

Copilot AI review requested due to automatic review settings September 11, 2025 19:00
@QuiqueSanMongo QuiqueSanMongo requested a review from a team as a code owner September 11, 2025 19:00
Copy link
Copy Markdown
Contributor

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 updates documentation for the MongoDB Atlas Cluster CloudFormation resource, improving the README files with more comprehensive information about the resource.

  • Updates the main cluster CFN resource README with detailed attribute descriptions and improved formatting
  • Adds minor clarification to the cluster example README
  • Enhances documentation structure to better guide users in understanding and using the cluster resource

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
cfn-resources/cluster/README.md Comprehensive rewrite adding detailed attribute descriptions, requirements, and improved structure
examples/cluster/README.md Minor text improvement for clarity

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread cfn-resources/cluster/README.md Outdated
## Cloudformation Examples

See the examples [CFN Template](/examples/cluster/cluster.json) for example resource. No newline at end of file
See the examples [CFN Template](/examples/cluster/README.md) for example resource. No newline at end of file
Copy link

Copilot AI Sep 11, 2025

Choose a reason for hiding this comment

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

The link points to a README.md file instead of the actual CloudFormation template. Based on the original content, this should link to the JSON template file (e.g., /examples/cluster/cluster.json) rather than the README file.

Suggested change
See the examples [CFN Template](/examples/cluster/README.md) for example resource.
See the examples [CFN Template](/examples/cluster/cluster.json) for example resource.

Copilot uses AI. Check for mistakes.
Comment thread cfn-resources/cluster/README.md Outdated
## Attributes and Parameters

See the [resource docs](docs/README.md).
* `AdvancedSettings` - processArgs
Copy link

Copilot AI Sep 11, 2025

Choose a reason for hiding this comment

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

The type description 'processArgs' is unclear and inconsistent with other attribute type descriptions. It should specify the actual data type (e.g., 'Object' or 'AdvancedSettings Object') for consistency with other attributes.

Suggested change
* `AdvancedSettings` - processArgs
* `AdvancedSettings` - AdvancedSettings Object

Copilot uses AI. Check for mistakes.
Comment thread cfn-resources/cluster/README.md Outdated
* `ClusterType` - String
Configuration of nodes that comprise the cluster.

* `ConnectionStrings` - connectionStrings
Copy link

Copilot AI Sep 11, 2025

Choose a reason for hiding this comment

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

The type description 'connectionStrings' should be capitalized to 'ConnectionStrings Object' or similar to maintain consistency with the naming convention used for other complex types in this documentation.

Suggested change
* `ConnectionStrings` - connectionStrings
* `ConnectionStrings` - ConnectionStrings Object

Copilot uses AI. Check for mistakes.
Comment thread cfn-resources/cluster/README.md Outdated
Flag that indicates whether termination protection is enabled on the cluster. If set to true, MongoDB Cloud won't delete the cluster. If set to false, MongoDB Cloud will delete the cluster.

* `Tags` - Array
List of settings that configure your cluster regions. For Global Clusters, each object in the array represents a zone where your clusters nodes deploy. For non-Global replica sets and sharded clusters, this array has one object representing where your clusters nodes deploy.
Copy link

Copilot AI Sep 11, 2025

Choose a reason for hiding this comment

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

The description for Tags is incorrect - it appears to be copied from the ReplicationSpecs attribute. Tags should describe key-value pairs for labeling and organizing resources, not cluster region configuration.

Suggested change
List of settings that configure your cluster regions. For Global Clusters, each object in the array represents a zone where your clusters nodes deploy. For non-Global replica sets and sharded clusters, this array has one object representing where your clusters nodes deploy.
Collection of key-value pairs that you can use to label and organize your cluster resources. Tags help you manage, search, and filter resources within your cloud environment.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown

@ytineo-mongodb ytineo-mongodb left a comment

Choose a reason for hiding this comment

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

LGTM

Great job!!

Comment thread cfn-resources/cluster/README.md Outdated
## Attributes and Parameters

See the [resource docs](docs/README.md).
* `AdvancedSettings` - processArgs
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

just curious: what is the purpose of this change? I am thinking that if we do it here, all the other resources will have a different structure

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think more like a question for @lantoli maybe?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we can just refer to docs folder as this attribute information seems duplicated with the other content. This is different to Terraform because there is not a doc folder there with all this information

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I can point to the resource docs](docs/README.md) file instead. is it OK?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

yes, unless we want to change for a reason we can just leave this section as we do it for the other resources. Right?

@@ -1,18 +1,87 @@
# MongoDB::Atlas::Cluster
# MongoDB::Atlas::Cluster CFN resource
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think main change in this PR should be about saying that MongoDB::Atlas::Cluster also allows to create Flex clusters, and this is recommended over using MongoDB::Atlas::FlexCluster.

You might want to get some inspiration from the CDK PRs:
https://github.com/mongodb/awscdk-resources-mongodbatlas/pull/493/files
https://github.com/mongodb/awscdk-resources-mongodbatlas/pull/495/files

Comment thread cfn-resources/cluster/README.md Outdated
Copy link
Copy Markdown
Member

@lantoli lantoli left a comment

Choose a reason for hiding this comment

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

LGTM after the last comment is addressed

QuiqueSanMongo and others added 2 commits September 15, 2025 11:14
Co-authored-by: Leo Antoli <430982+lantoli@users.noreply.github.com>
@QuiqueSanMongo QuiqueSanMongo added this pull request to the merge queue Sep 15, 2025
Merged via the queue into master with commit e7b905a Sep 15, 2025
39 checks passed
@QuiqueSanMongo QuiqueSanMongo deleted the DOCSP-53419 branch September 15, 2025 17:36
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.

5 participants