File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
internal/hcl/testdata/clu2adv Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,16 @@ resource "resource1" "res1" {
33}
44
55resource "mongodbatlas_cluster" "free_cluster" { # comment in the resource
6- # comment in own line
6+ # comment in own line in the beginning
77 count = local. use_free_cluster ? 1 : 0
88 project_id = var. project_id # inline comment kept
99 name = var. cluster_name
10+ # comment in own line in the middle is deleted
1011 provider_name = " TENANT" # inline comment for attribute moved is not kept
1112 backing_provider_name = " AWS"
1213 provider_region_name = var. region
1314 provider_instance_size_name = " M0"
15+ # comment in own line at the end happens before replication_specs
1416}
1517
1618data "mongodbatlas_cluster" "cluster2" {
Original file line number Diff line number Diff line change @@ -3,10 +3,11 @@ resource "resource1" "res1" {
33}
44
55resource "mongodbatlas_advanced_cluster" "free_cluster" { # comment in the resource
6- # comment in own line
7- count = local. use_free_cluster ? 1 : 0
8- project_id = var. project_id # inline comment kept
9- name = var. cluster_name
6+ # comment in own line in the beginning
7+ count = local. use_free_cluster ? 1 : 0
8+ project_id = var. project_id # inline comment kept
9+ name = var. cluster_name
10+ # comment in own line at the end happens before replication_specs
1011 cluster_type = " REPLICASET"
1112 replication_specs = [{
1213 region_configs = [{
You can’t perform that action at this time.
0 commit comments