-
Notifications
You must be signed in to change notification settings - Fork 1
doc: Update doc for adv2v2 command #68
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
Conversation
There was a problem hiding this 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 the documentation structure for the Terraform Atlas CLI plugin by introducing separate documentation pages for each command and consolidating content in the README.
- Removes the standalone dynamic block limitations guide
- Creates dedicated documentation for
clu2adv
andadv2v2
commands - Restructures the README to provide a cleaner overview with links to detailed command documentation
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
docs/guide_clu2adv_dynamic_block.md | Removes the standalone guide for dynamic block limitations |
docs/command_clu2adv.md | Creates comprehensive documentation for the clu2adv command including usage, examples, and limitations |
docs/command_adv2v2.md | Creates comprehensive documentation for the adv2v2 command including usage, examples, and limitations |
README.md | Restructures to provide clean overview with links to detailed command documentation |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]>
@@ -4,8 +4,33 @@ | |||
|
|||
This repository contains the Atlas CLI plugin for [Terraform's MongoDB Atlas Provider](https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs). | |||
|
|||
It has the following commands to help with your Terraform configurations: | |||
- **clusterToAdvancedCluster**: Convert a `mongodbatlas_cluster` Terraform configuration to `mongodbatlas_advanced_cluster` (preview provider 2.0.0). | |||
## Available Commands |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be after installation perhaps?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's fair, changed here: 646a4e2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
docs/command_clu2adv.md
Outdated
|
||
If you need to use the plugin for `dynamic` block use cases not yet supported, please send us [feedback](https://github.com/mongodb-labs/atlas-cli-plugin-terraform/issues). | ||
|
||
#### Dynamic block and individual blocks in the same resource |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might rephrase this to: Block values defined with combination of dynamic and inline expressions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, changed here: 3a64a89
Co-authored-by: Agustin Bettati <[email protected]>
docs/command_clu2adv.md
Outdated
@@ -0,0 +1,194 @@ | |||
# Convert mongodbatlas_cluster to mongodbatlas_advanced_cluster | |||
|
|||
clusterToAdvancedCluster (clu2adv) command helps you migrate from `mongodbatlas_cluster` to `mongodbatlas_advanced_cluster` Provider 2.0.0 schema. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be helpful to clarify this. ++"This revised file migrates the terraform configurations and state to the latest version and does not modify the resources deployed in MongoDB Atlas"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, changed here: 3ed0cde
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: lmkerbey-mdb <[email protected]>
Co-authored-by: lmkerbey-mdb <[email protected]>
Co-authored-by: lmkerbey-mdb <[email protected]>
Co-authored-by: lmkerbey-mdb <[email protected]>
Co-authored-by: lmkerbey-mdb <[email protected]>
Co-authored-by: lmkerbey-mdb <[email protected]>
Co-authored-by: lmkerbey-mdb <[email protected]>
Co-authored-by: lmkerbey-mdb <[email protected]>
Co-authored-by: lmkerbey-mdb <[email protected]>
Co-authored-by: lmkerbey-mdb <[email protected]>
Co-authored-by: lmkerbey-mdb <[email protected]>
Co-authored-by: lmkerbey-mdb <[email protected]>
Co-authored-by: lmkerbey-mdb <[email protected]>
docs/command_adv2v2.md
Outdated
|
||
#### Combination of blocks with dynamic and inline expressions | ||
|
||
Dynamic blocks and individual blocks for `region_configs` or `replication_specs` are not supported at the same time. Remove the individual `region_configs` or `replication_specs` blocks and use a local `list` variable with [concat](https://developer.hashicorp.com/terraform/language/functions/concat) to add the individual block information to the variable you're using in the `for_each` expression. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dynamic blocks and individual blocks for `region_configs` or `replication_specs` are not supported at the same time. Remove the individual `region_configs` or `replication_specs` blocks and use a local `list` variable with [concat](https://developer.hashicorp.com/terraform/language/functions/concat) to add the individual block information to the variable you're using in the `for_each` expression. | |
Dynamic blocks and individual blocks for `region_configs` or `replication_specs` are not supported at the same time. To continue using this plugin, remove the individual `region_configs` or `replication_specs` blocks and use a local `list` variable with [concat](https://developer.hashicorp.com/terraform/language/functions/concat) to add the individual block information to the variable you're using in the `for_each` expression. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, changed here: eddaa86
docs/command_adv2v2.md
Outdated
|
||
Dynamic blocks and individual blocks for `region_configs` or `replication_specs` are not supported at the same time. Remove the individual `region_configs` or `replication_specs` blocks and use a local `list` variable with [concat](https://developer.hashicorp.com/terraform/language/functions/concat) to add the individual block information to the variable you're using in the `for_each` expression. | ||
|
||
Let's see an example with `region_configs`; it's the same idea for `replication_specs`. In the original configuration file, the `mongodb_cluster` resource is used inside a module that receives the `region_configs` elements in a `list` variable and we want to add an additional `region_configs` with a read-only node. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's see an example with `region_configs`; it's the same idea for `replication_specs`. In the original configuration file, the `mongodb_cluster` resource is used inside a module that receives the `region_configs` elements in a `list` variable and we want to add an additional `region_configs` with a read-only node. | |
##### Example | |
Let's see an example with `region_configs`; the same idea applies for `replication_specs`. In the original configuration file, the `mongodbatlas_cluster` resource is used inside a module that receives the `region_configs` elements in a `list` variable and we want to add an additional `region_configs` with a read-only node. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, changed here: eddaa86
docs/command_clu2adv.md
Outdated
|
||
Dynamic blocks and individual blocks for `regions_config` or `replication_specs` are not supported at the same time. Remove the individual `regions_config` or `replication_specs` blocks and use a local `list` variable with [concat](https://developer.hashicorp.com/terraform/language/functions/concat) to add the individual block information to the variable you're using in the `for_each` expression. | ||
|
||
Let's see an example with `regions_config`, it's the same idea for `replication_specs`. In the original configuration file, the `mongodb_cluster` resource is used inside a module that receives the `regions_config` elements in a `list` variable and we want to add an additional `regions_config` with a read-only node. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you may apply the same suggestion I've given before, for consistency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, changed here: eddaa86
Co-authored-by: lmkerbey-mdb <[email protected]>
Description
Update doc for adv2v2 command.
Note: Migration Guide: Advanced Cluster (v1.x → v2.0.0) is not linked yet from README.md adv2v2 command as it's not in master branch yet. It will be added after provider 2.0.0 is released.
Link to any related issue(s): CLOUDP-340590
Type of change:
Required Checklist:
Further comments