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
The initial deployment works fine, AS Groups and their related ECS instances get created.
So far so good. The problems occcur as soon as we change the AS Configuration (Terraform Ressource opentelekomcloud_as_configuration_v1). The Terraform Plan indicates it will replace the AS Configuration and then fails doing so alerting that it is used by the AS Group.
-----BEGIN LOGOUTPUT TERRAFORM APPLY
Resource actions are indicated with the following symbols:
~ update in-place
-/+ destroy and then create replacement
Terraform will perform the following actions:
opentelekomcloud_as_configuration_v1.primary_group_config must be replaced
opentelekomcloud_as_group_v1.primary_group will be updated in-place
~ resource "opentelekomcloud_as_group_v1" "primary_group" {
id = "XXXXXX"
~ scaling_configuration_id = "XXXXXXXXXXXXX" -> (known after apply)
tags = {}
# (17 unchanged attributes hidden)
# (7 unchanged blocks hidden)
}
Plan: 1 to add, 1 to change, 1 to destroy.
opentelekomcloud_as_configuration_v1.primary_group_config: Destroying... [id=XXXXXXXXXXXXX]
╷
│ Error: can not delete the configuration "XXXXXX", it is used by AS groups [XXXXXXXXXXXXXXX]
-----END LOGOUTPUT TERRAFORM APPLY
The text was updated successfully, but these errors were encountered:
anton-sidelnikov
changed the title
Terraform problem with replacing existing ressources
Terraform problem with replacing existing ressources (AS config)
Jan 9, 2025
we ran into an issue regarding a Terraform Deployment of an AS Group in:
Terraform Provider: opentelekomcloud/opentelekomcloud v1.36.25
The initial deployment works fine, AS Groups and their related ECS instances get created.
So far so good. The problems occcur as soon as we change the AS Configuration (Terraform Ressource opentelekomcloud_as_configuration_v1). The Terraform Plan indicates it will replace the AS Configuration and then fails doing so alerting that it is used by the AS Group.
-----BEGIN LOGOUTPUT TERRAFORM APPLY
Resource actions are indicated with the following symbols:
~ update in-place
-/+ destroy and then create replacement
Terraform will perform the following actions:
opentelekomcloud_as_configuration_v1.primary_group_config must be replaced
-/+ resource "opentelekomcloud_as_configuration_v1" "primary_group_config" {
~ id = "XXXXXX" -> (known after apply)
~ region = "eu-de" -> (known after apply)
# (1 unchanged attribute hidden)
~ instance_config {
- metadata = {} -> null
~ user_data = "XXXXX" -> "XXXXXXX" # forces replacement
# (4 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}
}
opentelekomcloud_as_group_v1.primary_group will be updated in-place
~ resource "opentelekomcloud_as_group_v1" "primary_group" {
id = "XXXXXX"
~ scaling_configuration_id = "XXXXXXXXXXXXX" -> (known after apply)
tags = {}
# (17 unchanged attributes hidden)
# (7 unchanged blocks hidden)
}
Plan: 1 to add, 1 to change, 1 to destroy.
opentelekomcloud_as_configuration_v1.primary_group_config: Destroying... [id=XXXXXXXXXXXXX]
╷
│ Error: can not delete the configuration "XXXXXX", it is used by AS groups [XXXXXXXXXXXXXXX]
-----END LOGOUTPUT TERRAFORM APPLY
The text was updated successfully, but these errors were encountered: