Skip to content

Instantly share code, notes, and snippets.

@ansamy
Created August 31, 2024 14:11
Show Gist options
  • Save ansamy/7ddcc611adcb86370daf1c0872d1941f to your computer and use it in GitHub Desktop.
Save ansamy/7ddcc611adcb86370daf1c0872d1941f to your computer and use it in GitHub Desktop.
Cloud.ru DDS terraform creation error
$ terragrunt apply
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:
# huaweicloud_dds_instance.mongodb_instances["dds01"] will be created
+ resource "huaweicloud_dds_instance" "mongodb_instances" {
+ availability_zone = "ru-moscow-1a,ru-moscow-1b,ru-moscow-1c"
+ balancer_status = (known after apply)
+ charging_mode = (known after apply)
+ created_at = (known after apply)
+ db_username = (known after apply)
+ enterprise_project_id = (known after apply)
+ groups = (known after apply)
+ id = (known after apply)
+ maintain_begin = (known after apply)
+ maintain_end = (known after apply)
+ mode = "ReplicaSet"
+ name = "dds01"
+ nodes = (known after apply)
+ port = 27017
+ region = (known after apply)
+ replica_set_name = (known after apply)
+ second_level_monitoring_enabled = (known after apply)
+ security_group_id = "8c880e92-6040-4ad3-b145-1aa441e2c60c"
+ slow_log_desensitization = (known after apply)
+ ssl = true
+ status = (known after apply)
+ subnet_id = "c9db8b64-9e59-4c70-89a2-1b26863cbd3d"
+ time_zone = (known after apply)
+ updated_at = (known after apply)
+ vpc_id = "ca4b2fe3-e672-4234-b8ee-e6418d962fdb"
+ datastore {
+ storage_engine = "wiredTiger"
+ type = "DDS-Community"
+ version = "4.0"
}
+ flavor {
+ num = 3
+ size = 10
+ spec_code = "dds.mongodb.c6.large.4.repset"
+ storage = "ULTRAHIGH"
+ type = "replica"
}
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ dds_instances = (sensitive value)
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
huaweicloud_dds_instance.mongodb_instances["dds01"]: Creating...
...
huaweicloud_dds_instance.mongodb_instances["dds01"]: Still creating... [7m20s elapsed]
│ Error: Resource not found: [GET https://dds.ru-moscow-1.hc.sbercloud.ru/v3/59c6ad72a1df490abfb2201f8d84a8b3/instances/fe1d5e7b2b4042ce87180f4e8c51a192in02/monitoring-by-seconds/switch], request_id: 1bf1d3ae4648f70f9ac71eb390314ae8, error message: {"error_msg":"The API does not exist or has not been published in the environment","error_code":"APIGW.0101","request_id":"1bf1d3ae4648f70f9ac71eb390314ae8"}
│ with huaweicloud_dds_instance.mongodb_instances["dds01"],
│ on dds_instances.tf line 1, in resource "huaweicloud_dds_instance" "mongodb_instances":
│ 1: resource "huaweicloud_dds_instance" "mongodb_instances" {
$ terragrunt state list
huaweicloud_dds_instance.mongodb_instances["dds01"]
$ terragrunt destroy
huaweicloud_dds_instance.mongodb_instances["dds01"]: Refreshing state... [id=fe1d5e7b2b4042ce87180f4e8c51a192in02]
│ Error: Resource not found: [GET https://dds.ru-moscow-1.hc.sbercloud.ru/v3/59c6ad72a1df490abfb2201f8d84a8b3/instances/fe1d5e7b2b4042ce87180f4e8c51a192in02/monitoring-by-seconds/switch], request_id: ca59ba7529e82eedaed8360f0f5484e2, error message: {"error_msg":"The API does not exist or has not been published in the environment","error_code":"APIGW.0101","request_id":"ca59ba7529e82eedaed8360f0f5484e2"}
│ with huaweicloud_dds_instance.mongodb_instances["dds01"],
│ on dds_instances.tf line 1, in resource "huaweicloud_dds_instance" "mongodb_instances":
│ 1: resource "huaweicloud_dds_instance" "mongodb_instances" {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment