You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`--replaceOutput` or `-r`: Overwrite the file at the output path if it already exists. You can also modify the input file in-place.
27
27
-`--watch` or `-w`: Keep the plugin running and watching for changes in the input file
28
28
29
+
## Comments and formatting
30
+
31
+
During the conversion process, some formatting elements may not be preserved:
32
+
- Some comments from the original resources may not be preserved in the output
33
+
- Custom blank lines and spacing may be modified
34
+
- The output file will have standardized formatting
35
+
36
+
We recommend reviewing the converted output and re-adding any important comments or documentation that you need to maintain.
37
+
29
38
## Examples
30
39
31
40
You can find [here](https://github.com/mongodb-labs/atlas-cli-plugin-terraform/tree/main/internal/convert/testdata/adv2v2) examples of input files (suffix .in.tf) and the corresponding output files (suffix .out.tf).
@@ -56,6 +65,7 @@ dynamic "tags" {
56
65
### Dynamic blocks in region_configs
57
66
58
67
You can use `dynamic` blocks for `region_configs`. The plugin assumes that the value of `for_each` is an expression which evaluates to a `list` of objects.
68
+
**Note:**`map` and `set` are not supported.
59
69
60
70
This is an example of how to use dynamic blocks in `region_configs`:
61
71
```hcl
@@ -81,6 +91,7 @@ replication_specs {
81
91
### Dynamic blocks in replication_specs
82
92
83
93
You can use `dynamic` blocks for `replication_specs`. The plugin assumes that the value of `for_each` is an expression which evaluates to a `list` of objects.
94
+
**Note:**`map` and `set` are not supported.
84
95
85
96
This is an example of how to use dynamic blocks in `replication_specs`:
-`--watch` or `-w`: Keep the plugin running and watching for changes in the input file
27
27
-`--includeMoved` or `-m`: Include the `moved blocks` in the output file
28
28
29
+
## Comments and formatting
30
+
31
+
During the conversion process, some formatting elements may not be preserved:
32
+
- Some comments from the original resources may not be preserved in the output
33
+
- Custom blank lines and spacing may be modified
34
+
- The output file will have standardized formatting
35
+
36
+
We recommend reviewing the converted output and re-adding any important comments or documentation that you need to maintain.
37
+
29
38
## Examples
30
39
31
40
You can find [here](https://github.com/mongodb-labs/atlas-cli-plugin-terraform/tree/main/internal/convert/testdata/clu2adv) some examples of input files (suffix .in.tf) and the corresponding output files (suffix .out.tf).
@@ -56,6 +65,7 @@ dynamic "tags" {
56
65
### Dynamic blocks in regions_config
57
66
58
67
You can use `dynamic` blocks for `regions_config`. The plugin assumes that the value of `for_each` is an expression which evaluates to a `list` of objects.
68
+
**Note:**`map` and `set` are not supported.
59
69
60
70
This is an example of how to use dynamic blocks in `regions_config`:
61
71
```hcl
@@ -77,6 +87,7 @@ replication_specs {
77
87
### Dynamic blocks in replication_specs
78
88
79
89
You can use `dynamic` blocks for `replication_specs`. The plugin assumes that the value of `for_each` is an expression which evaluates to a `list` of objects.
90
+
**Note:**`map` and `set` are not supported.
80
91
81
92
This is an example of how to use dynamic blocks in `replication_specs`:
0 commit comments