volcengine / terraform-provider-volcengine

Mozilla Public License 2.0
27 stars 10 forks source link

When an eip is bound to a NIC, a tag is automatically added #76

Closed Dup4 closed 1 year ago

Dup4 commented 1 year ago
resource "volcengine_eip_address" "ecs_bytesbc_boe_test_external_ip" {
  name = "ecs-bytesbc-boe-test-external-ip"

  billing_type = "PostPaidByTraffic"
  bandwidth    = 200
  isp          = "BGP"

  project_name = var.volc_project_name
}

resource "volcengine_eip_associate" "ecs_bytesbc_boe_test" {
  allocation_id = volcengine_eip_address.ecs_bytesbc_boe_test_external_ip.id
  instance_id   = volcengine_ecs_instance.ecs_bytesbc_boe_test.id
  instance_type = "EcsInstance"
}
image

When I terraform apply an eip and its binding, then again terraform plan prompts a difference in state with the remote end.

zpp12354321 commented 1 year ago

please update to version v0.0.64, we have fixed this issue @Dup4

Dup4 commented 1 year ago

please update to version v0.0.64, we have fixed this issue @Dup4

When I upgrade to v0.0.64 from v0.0.51, terraform plan shows that need to recreate ecs instances.

image
zpp12354321 commented 1 year ago

@Dup4 hi, The auto renew flag of ECS instance Only effective when instance_charge_type is PrePaid. Default is true. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields. The same with auto_renew_period