Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Dup4 opened this issue Mar 29, 2023 · 3 comments
Closed

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

Dup4 opened this issue Mar 29, 2023 · 3 comments

Comments

@Dup4
Copy link

Dup4 commented Mar 29, 2023

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
Copy link
Collaborator

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

@Dup4
Copy link
Author

Dup4 commented Mar 30, 2023

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
Copy link
Collaborator

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants