terraform-provider-alicloud icon indicating copy to clipboard operation
terraform-provider-alicloud copied to clipboard

FR: in-place update `slb_server_certificate`

Open zxh326 opened this issue 2 years ago • 0 comments

if we update alicloud_slb_server_certificate.server_certificate or private_key, will get this plan

-/+ resource "alicloud_slb_server_certificate" "test_example_com" {
      ~ id                 = "*****" -> (known after apply)
      ~ server_certificate = <<-EOT # forces replacement

Terraform will execute destory and recreate resource, but if this certificate bound to listeners, cannot delete it.

The solution is to create a same resource with a different name, and change listeners bound this one....It looks so weird

can we give a easy way to in-place update slb_server_certificate ?

Terraform Version

Terraform v1.2.4
on darwin_amd64
+ provider registry.terraform.io/aliyun/alicloud v1.165.0

zxh326 avatar Jul 05 '22 08:07 zxh326