Closed PaulomeeCb closed 2 months ago
It would be helpful if validate too how this change is affecting customer behavior, particularly for existing customers who already have clusters running.
It would be helpful if validate too how this change is affecting customer behavior, particularly for existing customers who already have clusters running.
@aniket-Kumar-c So if they have existing clusters, there won't be any change for them. This connection string is already implemented in open-api, we missed it when we added clusters to terraform, so we are just returning it in the response. I will still test this out and add the validations.
It would be helpful if validate too how this change is affecting customer behavior, particularly for existing customers who already have clusters running.
Deployed a cluster on local through main -
Ran terraform plan
to list the existing cluster :
We can see connection_string is shown for the existing cluster as well -
terraform plan
╷
│ Warning: Provider development overrides are in effect
│
│ The following provider development overrides are set in the CLI configuration:
│ - couchbasecloud/couchbase-capella in /Users/paulomee.de/go/bin
│
│ The behavior may therefore not match any released version of the provider and applying changes may cause the state to become incompatible with published releases.
╵
data.couchbase-capella_clusters.existing_clusters: Reading...
data.couchbase-capella_clusters.existing_clusters: Read complete after 0s
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# couchbase-capella_cluster.new_cluster will be created
+ resource "couchbase-capella_cluster" "new_cluster" {
+ app_service_id = (known after apply)
+ audit = (known after apply)
+ availability = {
+ type = "multi"
}
+ cloud_provider = {
+ cidr = "10.4.0.0/23"
+ region = "us-east-1"
+ type = "aws"
}
+ connection_string = (known after apply)
+ couchbase_server = (known after apply)
+ current_state = (known after apply)
+ description = "My first test cluster for multiple services."
+ etag = (known after apply)
+ id = (known after apply)
+ name = "New Terraform Cluster 2"
+ organization_id = "f1fd2257-e976-4579-8f68-9ec7c99ca65b"
+ project_id = "ed847096-826c-4139-9abe-89c104fdc5a5"
+ service_groups = [
+ {
+ node = {
+ compute = {
+ cpu = 4
+ ram = 16
}
+ disk = {
+ autoexpansion = (known after apply)
+ iops = 5000
+ storage = 50
+ type = "io2"
}
}
+ num_of_nodes = 3
+ services = [
+ "data",
+ "index",
+ "query",
]
},
]
+ support = {
+ plan = "enterprise"
+ timezone = "ET"
}
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ cluster_id = (known after apply)
+ clusters_list = {
+ data = [
+ {
+ app_service_id = null
+ audit = {
+ created_at = "2024-08-29 18:18:25.46315021 +0000 UTC"
+ created_by = "09324460-0c70-442f-b993-8694fcd49923"
+ modified_at = "2024-08-29 18:24:21.405751875 +0000 UTC"
+ modified_by = "09324460-0c70-442f-b993-8694fcd49923"
+ version = 5
}
+ availability = {
+ type = "multi"
}
+ cloud_provider = {
+ cidr = "10.0.0.0/24"
+ region = "us-east-1"
+ type = "aws"
}
+ connection_string = "cb.lgz4g5h7lsxwwb5l.aws-guardians.nonprod-project-avengers.com"
+ couchbase_server = {
+ version = "7.6.2"
}
+ current_state = "healthy"
+ description = ""
+ id = "8cf8886a-030f-43a0-b660-cdc3f21e521e"
+ name = "neatceciliararagon"
+ organization_id = "f1fd2257-e976-4579-8f68-9ec7c99ca65b"
+ project_id = "ed847096-826c-4139-9abe-89c104fdc5a5"
+ service_groups = [
+ {
+ node = {
+ compute = {
+ cpu = 8
+ ram = 16
}
+ disk = {
+ autoexpansion = null
+ iops = 3000
+ storage = 50
+ type = "gp3"
}
}
+ num_of_nodes = 3
+ services = [
+ "index",
+ "data",
+ "query",
]
},
]
+ support = {
+ plan = "enterprise"
+ timezone = "PT"
}
},
]
+ organization_id = "f1fd2257-e976-4579-8f68-9ec7c99ca65b"
+ project_id = "ed847096-826c-4139-9abe-89c104fdc5a5"
}
+ new_cluster = {
+ app_service_id = (known after apply)
+ audit = (known after apply)
+ availability = {
+ type = "multi"
}
+ cloud_provider = {
+ cidr = "10.4.0.0/23"
+ region = "us-east-1"
+ type = "aws"
}
+ connection_string = (known after apply)
+ couchbase_server = (known after apply)
+ current_state = (known after apply)
+ description = "My first test cluster for multiple services."
+ etag = (known after apply)
+ id = (known after apply)
+ if_match = null
+ name = "New Terraform Cluster 2"
+ organization_id = "f1fd2257-e976-4579-8f68-9ec7c99ca65b"
+ project_id = "ed847096-826c-4139-9abe-89c104fdc5a5"
+ service_groups = [
+ {
+ node = {
+ compute = {
+ cpu = 4
+ ram = 16
}
+ disk = {
+ autoexpansion = (known after apply)
+ iops = 5000
+ storage = 50
+ type = "io2"
}
}
+ num_of_nodes = 3
+ services = [
+ "data",
+ "index",
+ "query",
]
},
]
+ support = {
+ plan = "enterprise"
+ timezone = "ET"
}
}
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Note: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if you run "terraform apply" now.
On running terraform apply, a new cluster will be added (added in tests above) , and connection string will appear for all the clusters in the GET response. CC: @aniket-Kumar-c
We should not link CBSE as it has customer info. Replace CBSE with an AV.
We should not link CBSE as it has customer info. Replace CBSE with an AV.
Closing this as linked the CBSE instead of AV.
Moved changes to PR- https://github.com/couchbasecloud/terraform-provider-couchbase-capella/pull/219
Jira
Description
Adding
connectionString
to cluster response as per customer requirement.Type of Change
Manual Testing Approach
How was this change tested and do you have evidence? (REQUIRED: Select at least 1)
Testing
Testing
**CREATE and GET -** terraform plan- ``` terraform plan ╷ │ Warning: Provider development overrides are in effect │ │ The following provider development overrides are set in the CLI configuration: │ - couchbasecloud/couchbase-capella in /Users/paulomee.de/go/bin │ │ The behavior may therefore not match any released version of the provider and applying changes may cause the state to become incompatible with published releases. ╵ data.couchbase-capella_clusters.existing_clusters: Reading... data.couchbase-capella_clusters.existing_clusters: Read complete after 0s Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create Terraform will perform the following actions: # couchbase-capella_cluster.new_cluster will be created + resource "couchbase-capella_cluster" "new_cluster" { + app_service_id = (known after apply) + audit = (known after apply) + availability = { + type = "multi" } + cloud_provider = { + cidr = "10.4.0.0/23" + region = "us-east-1" + type = "aws" } + connection_string = (known after apply) + couchbase_server = (known after apply) + current_state = (known after apply) + description = "My first test cluster for multiple services." + etag = (known after apply) + id = (known after apply) + name = "New Terraform Cluster" + organization_id = "ffffffff-aaaa-1414-eeee-0000000000" + project_id = "ffffffff-aaaa-1414-eeee-0000000000" + service_groups = [ + { + node = { + compute = { + cpu = 4 + ram = 16 } + disk = { + autoexpansion = (known after apply) + iops = 5000 + storage = 50 + type = "io2" } } + num_of_nodes = 3 + services = [ + "data", + "index", + "query", ] }, ] + support = { + plan = "developer pro" + timezone = "PT" } } Plan: 1 to add, 0 to change, 0 to destroy. Changes to Outputs: + cluster_id = (known after apply) + clusters_list = { + data = null + organization_id = "ffffffff-aaaa-1414-eeee-0000000000" + project_id = "ffffffff-aaaa-1414-eeee-0000000000" } + new_cluster = { + app_service_id = (known after apply) + audit = (known after apply) + availability = { + type = "multi" } + cloud_provider = { + cidr = "10.4.0.0/23" + region = "us-east-1" + type = "aws" } + connection_string = (known after apply) + couchbase_server = (known after apply) + current_state = (known after apply) + description = "My first test cluster for multiple services." + etag = (known after apply) + id = (known after apply) + if_match = null + name = "New Terraform Cluster" + organization_id = "ffffffff-aaaa-1414-eeee-0000000000" + project_id = "ffffffff-aaaa-1414-eeee-0000000000" + service_groups = [ + { + node = { + compute = { + cpu = 4 + ram = 16 } + disk = { + autoexpansion = (known after apply) + iops = 5000 + storage = 50 + type = "io2" } } + num_of_nodes = 3 + services = [ + "data", + "index", + "query", ] }, ] + support = { + plan = "developer pro" + timezone = "PT" } } ``` terraform apply- ``` terraform apply ╷ │ Warning: Provider development overrides are in effect │ │ The following provider development overrides are set in the CLI configuration: │ - couchbasecloud/couchbase-capella in /Users/paulomee.de/go/bin │ │ The behavior may therefore not match any released version of the provider and applying changes may cause the state to become incompatible with published releases. ╵ data.couchbase-capella_clusters.existing_clusters: Reading... data.couchbase-capella_clusters.existing_clusters: Read complete after 0s Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create Terraform will perform the following actions: # couchbase-capella_cluster.new_cluster will be created + resource "couchbase-capella_cluster" "new_cluster" { + app_service_id = (known after apply) + audit = (known after apply) + availability = { + type = "multi" } + cloud_provider = { + cidr = "10.4.0.0/23" + region = "us-east-1" + type = "aws" } + connection_string = (known after apply) + couchbase_server = (known after apply) + current_state = (known after apply) + description = "My first test cluster for multiple services." + etag = (known after apply) + id = (known after apply) + name = "New Terraform Cluster" + organization_id = "ffffffff-aaaa-1414-eeee-00000000000" + project_id = "ffffffff-aaaa-1414-eeee-00000000000" + service_groups = [ + { + node = { + compute = { + cpu = 4 + ram = 16 } + disk = { + autoexpansion = (known after apply) + iops = 5000 + storage = 50 + type = "io2" } } + num_of_nodes = 3 + services = [ + "data", + "index", + "query", ] }, ] + support = { + plan = "developer pro" + timezone = "PT" } } Plan: 1 to add, 0 to change, 0 to destroy. Changes to Outputs: + cluster_id = (known after apply) + clusters_list = { + data = null + organization_id = "ffffffff-aaaa-1414-eeee-00000000000" + project_id = "ffffffff-aaaa-1414-eeee-00000000000" } + new_cluster = { + app_service_id = (known after apply) + audit = (known after apply) + availability = { + type = "multi" } + cloud_provider = { + cidr = "10.4.0.0/23" + region = "us-east-1" + type = "aws" } + connection_string = (known after apply) + couchbase_server = (known after apply) + current_state = (known after apply) + description = "My first test cluster for multiple services." + etag = (known after apply) + id = (known after apply) + if_match = null + name = "New Terraform Cluster" + organization_id = "ffffffff-aaaa-1414-eeee-00000000000" + project_id = "ffffffff-aaaa-1414-eeee-00000000000" + service_groups = [ + { + node = { + compute = { + cpu = 4 + ram = 16 } + disk = { + autoexpansion = (known after apply) + iops = 5000 + storage = 50 + type = "io2" } } + num_of_nodes = 3 + services = [ + "data", + "index", + "query", ] }, ] + support = { + plan = "developer pro" + timezone = "PT" } } Do you want to perform these actions? Terraform will perform the actions described above. Only 'yes' will be accepted to approve. Enter a value: yes couchbase-capella_cluster.new_cluster: Creating... couchbase-capella_cluster.new_cluster: Still creating... [10s elapsed] couchbase-capella_cluster.new_cluster: Still creating... [20s elapsed] couchbase-capella_cluster.new_cluster: Still creating... [30s elapsed] couchbase-capella_cluster.new_cluster: Still creating... [40s elapsed] couchbase-capella_cluster.new_cluster: Still creating... [50s elapsed] couchbase-capella_cluster.new_cluster: Still creating... [1m0s elapsed] couchbase-capella_cluster.new_cluster: Still creating... [1m10s elapsed] couchbase-capella_cluster.new_cluster: Still creating... [1m20s elapsed] couchbase-capella_cluster.new_cluster: Still creating... [1m30s elapsed] couchbase-capella_cluster.new_cluster: Still creating... [1m40s elapsed] couchbase-capella_cluster.new_cluster: Still creating... [1m50s elapsed] couchbase-capella_cluster.new_cluster: Still creating... [2m0s elapsed] couchbase-capella_cluster.new_cluster: Still creating... [2m10s elapsed] couchbase-capella_cluster.new_cluster: Still creating... [2m20s elapsed] couchbase-capella_cluster.new_cluster: Still creating... [2m30s elapsed] couchbase-capella_cluster.new_cluster: Still creating... [2m40s elapsed] couchbase-capella_cluster.new_cluster: Still creating... [2m50s elapsed] couchbase-capella_cluster.new_cluster: Still creating... [3m0s elapsed] couchbase-capella_cluster.new_cluster: Still creating... [3m10s elapsed] couchbase-capella_cluster.new_cluster: Creation complete after 3m10s [id=ffffffff-aaaa-1414-eeee-00000000000] Apply complete! Resources: 1 added, 0 changed, 0 destroyed. Outputs: cluster_id = "ffffffff-aaaa-1414-eeee-00000000000" clusters_list = { "data" = tolist(null) /* of object */ "organization_id" = "ffffffff-aaaa-1414-eeee-00000000000" "project_id" = "ffffffff-aaaa-1414-eeee-00000000000" } new_cluster = { "app_service_id" = tostring(null) "audit" = { "created_at" = "2024-08-26 23:12:55.741799846 +0000 UTC" "created_by" = "ZJYLruoLZdi37mJv6mB5PlGFmWE2hTWB" "modified_at" = "2024-08-26 23:16:05.875521753 +0000 UTC" "modified_by" = "apikey-ZJYLruoLZdi37mJv6mB5PlGFmWE2hTWB" "version" = 4 } "availability" = { "type" = "multi" } "cloud_provider" = { "cidr" = "10.4.0.0/23" "region" = "us-east-1" "type" = "aws" } "connection_string" = "cb.h6gsykjqynh7npf.aws-guardians.nonprod-project-avengers.com" "couchbase_server" = { "version" = "7.6" } "current_state" = "healthy" "description" = "My first test cluster for multiple services." "etag" = "Version: 4" "id" = "ffffffff-aaaa-1414-eeee-00000000000" "if_match" = tostring(null) "name" = "New Terraform Cluster" "organization_id" = "ffffffff-aaaa-1414-eeee-00000000000" "project_id" = "ffffffff-aaaa-1414-eeee-00000000000" "service_groups" = toset([ { "node" = { "compute" = { "cpu" = 4 "ram" = 16 } "disk" = { "autoexpansion" = tobool(null) "iops" = 5000 "storage" = 50 "type" = "io2" } } "num_of_nodes" = 3 "services" = toset([ "data", "index", "query", ]) }, ]) "support" = { "plan" = "developer pro" "timezone" = "PT" } } ``` **UPDATE-** ``` terraform apply ╷ │ Warning: Provider development overrides are in effect │ │ The following provider development overrides are set in the CLI configuration: │ - couchbasecloud/couchbase-capella in /Users/paulomee.de/go/bin │ │ The behavior may therefore not match any released version of the provider and applying changes may cause the state to become incompatible with published releases. ╵ data.couchbase-capella_clusters.existing_clusters: Reading... couchbase-capella_cluster.new_cluster: Refreshing state... [id=ffffffff-aaaa-1414-eeee-00000000000] data.couchbase-capella_clusters.existing_clusters: Read complete after 0s Note: Objects have changed outside of Terraform Terraform detected the following changes made outside of Terraform since the last "terraform apply" which may have affected this plan: # couchbase-capella_cluster.new_cluster has changed ~ resource "couchbase-capella_cluster" "new_cluster" { ~ audit = { ~ modified_at = "2024-08-26 23:16:05.875521753 +0000 UTC" -> "2024-08-26 23:16:06.753801629 +0000 UTC" ~ modified_by = "apikey-ZJYLruoLZdi37mJv6mB5PlGFmWE2hTWB" -> "apikey-apikey-ZJYLruoLZdi37mJv6mB5PlGFmWE2hTWB" ~ version = 4 -> 5 # (2 unchanged attributes hidden) } ~ etag = "Version: 4" -> "Version: 5" id = "ffffffff-aaaa-1414-eeee-00000000000" name = "New Terraform Cluster" # (10 unchanged attributes hidden) } Unless you have made equivalent changes to your configuration, or ignored the relevant attributes using ignore_changes, the following plan may include actions to undo or respond to these changes. ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: ~ update in-place Terraform will perform the following actions: # couchbase-capella_cluster.new_cluster will be updated in-place ~ resource "couchbase-capella_cluster" "new_cluster" { + app_service_id = (known after apply) ~ audit = { ~ created_at = "2024-08-26 23:12:55.741799846 +0000 UTC" -> (known after apply) ~ created_by = "ZJYLruoLZdi37mJv6mB5PlGFmWE2hTWB" -> (known after apply) ~ modified_at = "2024-08-26 23:16:06.753801629 +0000 UTC" -> (known after apply) ~ modified_by = "apikey-apikey-ZJYLruoLZdi37mJv6mB5PlGFmWE2hTWB" -> (known after apply) ~ version = 5 -> (known after apply) } -> (known after apply) ~ connection_string = "cb.h6gsykjqynh7npf.aws-guardians.nonprod-project-avengers.com" -> (known after apply) ~ current_state = "healthy" -> (known after apply) ~ etag = "Version: 5" -> (known after apply) id = "ffffffff-aaaa-1414-eeee-00000000000" ~ name = "New Terraform Cluster" -> "New Terraform Cluster 2" ~ service_groups = [ - { - node = { - compute = { - cpu = 4 -> null - ram = 16 -> null } -> null - disk = { - iops = 5000 -> null - storage = 50 -> null - type = "io2" -> null } -> null } -> null - num_of_nodes = 3 -> null - services = [ - "data", - "index", - "query", ] -> null }, + { + node = { + compute = { + cpu = 4 + ram = 16 } + disk = { + autoexpansion = (known after apply) + iops = 5000 + storage = 50 + type = "io2" } } + num_of_nodes = 3 + services = [ + "data", + "index", + "query", ] }, ] ~ support = { ~ plan = "developer pro" -> "enterprise" ~ timezone = "PT" -> "ET" } # (6 unchanged attributes hidden) } Plan: 0 to add, 1 to change, 0 to destroy. Changes to Outputs: ~ clusters_list = { ~ data = null -> [ + { + app_service_id = null + audit = { + created_at = "2024-08-26 23:12:55.741799846 +0000 UTC" + created_by = "ZJYLruoLZdi37mJv6mB5PlGFmWE2hTWB" + modified_at = "2024-08-26 23:16:06.753801629 +0000 UTC" + modified_by = "apikey-apikey-ZJYLruoLZdi37mJv6mB5PlGFmWE2hTWB" + version = 5 } + availability = { + type = "multi" } + cloud_provider = { + cidr = "10.4.0.0/23" + region = "us-east-1" + type = "aws" } + connection_string = "cb.h6gsykjqynh7npf.aws-guardians.nonprod-project-avengers.com" + couchbase_server = { + version = "7.6.2" } + current_state = "healthy" + description = "My first test cluster for multiple services." + id = "ffffffff-aaaa-1414-eeee-00000000000" + name = "New Terraform Cluster" + organization_id = "ffffffff-aaaa-1414-eeee-00000000000" + project_id = "ffffffff-aaaa-1414-eeee-00000000000" + service_groups = [ + { + node = { + compute = { + cpu = 4 + ram = 16 } + disk = { + autoexpansion = null + iops = 5000 + storage = 50 + type = "io2" } } + num_of_nodes = 3 + services = [ + "index", + "data", + "query", ] }, ] + support = { + plan = "developer pro" + timezone = "PT" } }, ] # (2 unchanged attributes hidden) } ~ new_cluster = { + app_service_id = (known after apply) ~ audit = { - created_at = "2024-08-26 23:12:55.741799846 +0000 UTC" - created_by = "ZJYLruoLZdi37mJv6mB5PlGFmWE2hTWB" - modified_at = "2024-08-26 23:16:05.875521753 +0000 UTC" - modified_by = "apikey-ZJYLruoLZdi37mJv6mB5PlGFmWE2hTWB" - version = 4 } -> (known after apply) ~ connection_string = "cb.h6gsykjqynh7npf.aws-guardians.nonprod-project-avengers.com" -> (known after apply) ~ current_state = "healthy" -> (known after apply) ~ etag = "Version: 4" -> (known after apply) id = "ffffffff-aaaa-1414-eeee-00000000000" ~ name = "New Terraform Cluster" -> "New Terraform Cluster 2" ~ service_groups = [ ~ { ~ node = { ~ disk = { + autoexpansion = (known after apply) # (3 unchanged attributes hidden) } # (1 unchanged attribute hidden) } # (2 unchanged attributes hidden) }, ] ~ support = { ~ plan = "developer pro" -> "enterprise" ~ timezone = "PT" -> "ET" } # (7 unchanged attributes hidden) } Do you want to perform these actions? Terraform will perform the actions described above. Only 'yes' will be accepted to approve. Enter a value: yes couchbase-capella_cluster.new_cluster: Modifying... [id=ffffffff-aaaa-1414-eeee-00000000000] couchbase-capella_cluster.new_cluster: Still modifying... [id=ffffffff-aaaa-1414-eeee-00000000000, 10s elapsed] couchbase-capella_cluster.new_cluster: Still modifying... [id=ffffffff-aaaa-1414-eeee-00000000000, 20s elapsed] couchbase-capella_cluster.new_cluster: Still modifying... [id=ffffffff-aaaa-1414-eeee-00000000000, 30s elapsed] couchbase-capella_cluster.new_cluster: Still modifying... [id=ffffffff-aaaa-1414-eeee-00000000000, 40s elapsed] couchbase-capella_cluster.new_cluster: Still modifying... [id=ffffffff-aaaa-1414-eeee-00000000000, 50s elapsed] couchbase-capella_cluster.new_cluster: Still modifying... [id=ffffffff-aaaa-1414-eeee-00000000000, 1m0s elapsed] couchbase-capella_cluster.new_cluster: Still modifying... [id=ffffffff-aaaa-1414-eeee-00000000000, 1m10s elapsed] couchbase-capella_cluster.new_cluster: Still modifying... [id=ffffffff-aaaa-1414-eeee-00000000000, 1m20s elapsed] couchbase-capella_cluster.new_cluster: Still modifying... [id=ffffffff-aaaa-1414-eeee-00000000000, 1m30s elapsed] couchbase-capella_cluster.new_cluster: Still modifying... [id=ffffffff-aaaa-1414-eeee-00000000000, 1m40s elapsed] couchbase-capella_cluster.new_cluster: Still modifying... [id=ffffffff-aaaa-1414-eeee-00000000000, 1m50s elapsed] couchbase-capella_cluster.new_cluster: Still modifying... [id=ffffffff-aaaa-1414-eeee-00000000000, 2m0s elapsed] couchbase-capella_cluster.new_cluster: Modifications complete after 2m2s [id=ffffffff-aaaa-1414-eeee-00000000000] Apply complete! Resources: 0 added, 1 changed, 0 destroyed. Outputs: cluster_id = "ffffffff-aaaa-1414-eeee-00000000000" clusters_list = { "data" = tolist([ { "app_service_id" = tostring(null) "audit" = { "created_at" = "2024-08-26 23:12:55.741799846 +0000 UTC" "created_by" = "ZJYLruoLZdi37mJv6mB5PlGFmWE2hTWB" "modified_at" = "2024-08-26 23:16:06.753801629 +0000 UTC" "modified_by" = "apikey-apikey-ZJYLruoLZdi37mJv6mB5PlGFmWE2hTWB" "version" = 5 } "availability" = { "type" = "multi" } "cloud_provider" = { "cidr" = "10.4.0.0/23" "region" = "us-east-1" "type" = "aws" } "connection_string" = "cb.h6gsykjqynh7npf.aws-guardians.nonprod-project-avengers.com" "couchbase_server" = { "version" = "7.6.2" } "current_state" = "healthy" "description" = "My first test cluster for multiple services." "id" = "ffffffff-aaaa-1414-eeee-00000000000" "name" = "New Terraform Cluster" "organization_id" = "ffffffff-aaaa-1414-eeee-00000000000" "project_id" = "ffffffff-aaaa-1414-eeee-00000000000" "service_groups" = tolist([ { "node" = { "compute" = { "cpu" = 4 "ram" = 16 } "disk" = { "autoexpansion" = tobool(null) "iops" = 5000 "storage" = 50 "type" = "io2" } } "num_of_nodes" = 3 "services" = tolist([ "index", "data", "query", ]) }, ]) "support" = { "plan" = "developer pro" "timezone" = "PT" } }, ]) "organization_id" = "ffffffff-aaaa-1414-eeee-00000000000" "project_id" = "ffffffff-aaaa-1414-eeee-00000000000" } new_cluster = { "app_service_id" = tostring(null) "audit" = { "created_at" = "2024-08-26 23:12:55.741799846 +0000 UTC" "created_by" = "ZJYLruoLZdi37mJv6mB5PlGFmWE2hTWB" "modified_at" = "2024-08-26 23:28:24.412154054 +0000 UTC" "modified_by" = "apikey-apikey-ZJYLruoLZdi37mJv6mB5PlGFmWE2hTWB" "version" = 10 } "availability" = { "type" = "multi" } "cloud_provider" = { "cidr" = "10.4.0.0/23" "region" = "us-east-1" "type" = "aws" } "connection_string" = "cb.h6gsykjqynh7npf.aws-guardians.nonprod-project-avengers.com" "couchbase_server" = { "version" = "7.6" } "current_state" = "healthy" "description" = "My first test cluster for multiple services." "etag" = "Version: 10" "id" = "ffffffff-aaaa-1414-eeee-00000000000" "if_match" = tostring(null) "name" = "New Terraform Cluster 2" "organization_id" = "ffffffff-aaaa-1414-eeee-00000000000" "project_id" = "ffffffff-aaaa-1414-eeee-00000000000" "service_groups" = toset([ { "node" = { "compute" = { "cpu" = 4 "ram" = 16 } "disk" = { "autoexpansion" = tobool(null) "iops" = 5000 "storage" = 50 "type" = "io2" } } "num_of_nodes" = 3 "services" = toset([ "data", "index", "query", ]) }, ]) "support" = { "plan" = "enterprise" "timezone" = "ET" } } ``` **DESTROY-** ``` terraform destroy ╷ │ Warning: Provider development overrides are in effect │ │ The following provider development overrides are set in the CLI configuration: │ - couchbasecloud/couchbase-capella in /Users/paulomee.de/go/bin │ │ The behavior may therefore not match any released version of the provider and applying changes may cause the state to become incompatible with published releases. ╵ data.couchbase-capella_clusters.existing_clusters: Reading... couchbase-capella_cluster.new_cluster: Refreshing state... [id=ffffffff-aaaa-1414-eeee-00000000000] data.couchbase-capella_clusters.existing_clusters: Read complete after 0s Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: - destroy Terraform will perform the following actions: # couchbase-capella_cluster.new_cluster will be destroyed - resource "couchbase-capella_cluster" "new_cluster" { - audit = { - created_at = "2024-08-26 23:12:55.741799846 +0000 UTC" -> null - created_by = "ZJYLruoLZdi37mJv6mB5PlGFmWE2hTWB" -> null - modified_at = "2024-08-26 23:28:24.412154054 +0000 UTC" -> null - modified_by = "apikey-apikey-ZJYLruoLZdi37mJv6mB5PlGFmWE2hTWB" -> null - version = 10 -> null } -> null - availability = { - type = "multi" -> null } -> null - cloud_provider = { - cidr = "10.4.0.0/23" -> null - region = "us-east-1" -> null - type = "aws" -> null } -> null - connection_string = "cb.h6gsykjqynh7npf.aws-guardians.nonprod-project-avengers.com" -> null - couchbase_server = { - version = "7.6" -> null } -> null - current_state = "healthy" -> null - description = "My first test cluster for multiple services." -> null - etag = "Version: 10" -> null - id = "ffffffff-aaaa-1414-eeee-00000000000" -> null - name = "New Terraform Cluster 2" -> null - organization_id = "ffffffff-aaaa-1414-eeee-00000000000" -> null - project_id = "ffffffff-aaaa-1414-eeee-00000000000" -> null - service_groups = [ - { - node = { - compute = { - cpu = 4 -> null - ram = 16 -> null } -> null - disk = { - iops = 5000 -> null - storage = 50 -> null - type = "io2" -> null } -> null } -> null - num_of_nodes = 3 -> null - services = [ - "data", - "index", - "query", ] -> null }, ] -> null - support = { - plan = "enterprise" -> null - timezone = "ET" -> null } -> null } Plan: 0 to add, 0 to change, 1 to destroy. Changes to Outputs: - cluster_id = "ffffffff-aaaa-1414-eeee-00000000000" -> null - clusters_list = { - data = [ - { - app_service_id = null - audit = { - created_at = "2024-08-26 23:12:55.741799846 +0000 UTC" - created_by = "ZJYLruoLZdi37mJv6mB5PlGFmWE2hTWB" - modified_at = "2024-08-26 23:28:24.412154054 +0000 UTC" - modified_by = "apikey-apikey-ZJYLruoLZdi37mJv6mB5PlGFmWE2hTWB" - version = 10 } - availability = { - type = "multi" } - cloud_provider = { - cidr = "10.4.0.0/23" - region = "us-east-1" - type = "aws" } - connection_string = "cb.h6gsykjqynh7npf.aws-guardians.nonprod-project-avengers.com" - couchbase_server = { - version = "7.6.2" } - current_state = "healthy" - description = "My first test cluster for multiple services." - id = "ffffffff-aaaa-1414-eeee-00000000000" - name = "New Terraform Cluster 2" - organization_id = "ffffffff-aaaa-1414-eeee-00000000000" - project_id = "ffffffff-aaaa-1414-eeee-00000000000" - service_groups = [ - { - node = { - compute = { - cpu = 4 - ram = 16 } - disk = { - autoexpansion = null - iops = 5000 - storage = 50 - type = "io2" } } - num_of_nodes = 3 - services = [ - "index", - "data", - "query", ] }, ] - support = { - plan = "enterprise" - timezone = "ET" } }, ] - organization_id = "ffffffff-aaaa-1414-eeee-00000000000" - project_id = "ffffffff-aaaa-1414-eeee-00000000000" } -> null - new_cluster = { - app_service_id = null - audit = { - created_at = "2024-08-26 23:12:55.741799846 +0000 UTC" - created_by = "ZJYLruoLZdi37mJv6mB5PlGFmWE2hTWB" - modified_at = "2024-08-26 23:28:24.412154054 +0000 UTC" - modified_by = "apikey-apikey-ZJYLruoLZdi37mJv6mB5PlGFmWE2hTWB" - version = 10 } - availability = { - type = "multi" } - cloud_provider = { - cidr = "10.4.0.0/23" - region = "us-east-1" - type = "aws" } - connection_string = "cb.h6gsykjqynh7npf.aws-guardians.nonprod-project-avengers.com" - couchbase_server = { - version = "7.6" } - current_state = "healthy" - description = "My first test cluster for multiple services." - etag = "Version: 10" - id = "ffffffff-aaaa-1414-eeee-00000000000" - if_match = null - name = "New Terraform Cluster 2" - organization_id = "ffffffff-aaaa-1414-eeee-00000000000" - project_id = "ffffffff-aaaa-1414-eeee-00000000000" - service_groups = [ - { - node = { - compute = { - cpu = 4 - ram = 16 } - disk = { - autoexpansion = null - iops = 5000 - storage = 50 - type = "io2" } } - num_of_nodes = 3 - services = [ - "data", - "index", - "query", ] }, ] - support = { - plan = "enterprise" - timezone = "ET" } } -> null Do you really want to destroy all resources? Terraform will destroy all your managed infrastructure, as shown above. There is no undo. Only 'yes' will be accepted to confirm. Enter a value: yes couchbase-capella_cluster.new_cluster: Destroying... [id=ffffffff-aaaa-1414-eeee-00000000000] couchbase-capella_cluster.new_cluster: Still destroying... [id=ffffffff-aaaa-1414-eeee-00000000000, 10s elapsed] couchbase-capella_cluster.new_cluster: Still destroying... [id=ffffffff-aaaa-1414-eeee-00000000000, 20s elapsed] couchbase-capella_cluster.new_cluster: Still destroying... [id=ffffffff-aaaa-1414-eeee-00000000000, 30s elapsed] couchbase-capella_cluster.new_cluster: Still destroying... [id=ffffffff-aaaa-1414-eeee-00000000000, 40s elapsed] couchbase-capella_cluster.new_cluster: Still destroying... [id=ffffffff-aaaa-1414-eeee-00000000000, 50s elapsed] couchbase-capella_cluster.new_cluster: Still destroying... [id=ffffffff-aaaa-1414-eeee-00000000000, 1m0s elapsed] couchbase-capella_cluster.new_cluster: Still destroying... [id=ffffffff-aaaa-1414-eeee-00000000000, 1m10s elapsed] couchbase-capella_cluster.new_cluster: Still destroying... [id=ffffffff-aaaa-1414-eeee-00000000000, 1m20s elapsed] couchbase-capella_cluster.new_cluster: Still destroying... [id=ffffffff-aaaa-1414-eeee-00000000000, 1m30s elapsed] couchbase-capella_cluster.new_cluster: Still destroying... [id=ffffffff-aaaa-1414-eeee-00000000000, 1m40s elapsed] couchbase-capella_cluster.new_cluster: Still destroying... [id=ffffffff-aaaa-1414-eeee-00000000000, 1m50s elapsed] couchbase-capella_cluster.new_cluster: Still destroying... [id=ffffffff-aaaa-1414-eeee-00000000000, 2m0s elapsed] couchbase-capella_cluster.new_cluster: Still destroying... [id=ffffffff-aaaa-1414-eeee-00000000000, 2m10s elapsed] couchbase-capella_cluster.new_cluster: Still destroying... [id=ffffffff-aaaa-1414-eeee-00000000000, 2m20s elapsed] couchbase-capella_cluster.new_cluster: Still destroying... [id=ffffffff-aaaa-1414-eeee-00000000000, 2m30s elapsed] couchbase-capella_cluster.new_cluster: Destruction complete after 2m37s Destroy complete! Resources: 1 destroyed. ```Required Checklist:
Further comments