doc: DOCSP-53419 Update doc for MongoDB::Atlas::Cluster CFN resource#1439
doc: DOCSP-53419 Update doc for MongoDB::Atlas::Cluster CFN resource#1439QuiqueSanMongo merged 4 commits intomasterfrom
Conversation
There was a problem hiding this comment.
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.
| ## 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 |
There was a problem hiding this comment.
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.
| See the examples [CFN Template](/examples/cluster/README.md) for example resource. | |
| See the examples [CFN Template](/examples/cluster/cluster.json) for example resource. |
| ## Attributes and Parameters | ||
|
|
||
| See the [resource docs](docs/README.md). | ||
| * `AdvancedSettings` - processArgs |
There was a problem hiding this comment.
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.
| * `AdvancedSettings` - processArgs | |
| * `AdvancedSettings` - AdvancedSettings Object |
| * `ClusterType` - String | ||
| Configuration of nodes that comprise the cluster. | ||
|
|
||
| * `ConnectionStrings` - connectionStrings |
There was a problem hiding this comment.
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.
| * `ConnectionStrings` - connectionStrings | |
| * `ConnectionStrings` - ConnectionStrings Object |
| 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. |
There was a problem hiding this comment.
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.
| 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. |
| ## Attributes and Parameters | ||
|
|
||
| See the [resource docs](docs/README.md). | ||
| * `AdvancedSettings` - processArgs |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
I think more like a question for @lantoli maybe?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
I can point to the resource docs](docs/README.md) file instead. is it OK?
There was a problem hiding this comment.
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 | |||
There was a problem hiding this comment.
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
lantoli
left a comment
There was a problem hiding this comment.
LGTM after the last comment is addressed
Co-authored-by: Leo Antoli <430982+lantoli@users.noreply.github.com>
Proposed changes
_Jira ticket: https://jira.mongodb.org/browse/DOCSP-53419
Link to any related issue(s): https://jira.mongodb.org/browse/CLOUDP-286685
Type of change:
expected)
Manual QA performed:
Required Checklist:
make fmtand formatted my codeworks in Atlas
Further comments