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

[Bug]: Changing metro for equinix_metal_vrf should recreate resource #652

Open
ctreatma opened this issue Apr 16, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@ctreatma
Copy link
Contributor

Terraform Version

Terraform v1.5.7 on darwin_arm64

Equinix Provider Version

version = "1.34.1"

Effected Terraform Resources

equinix_metal_vrf

Terraform Config Files

No response

Debug Output

No response

Panic Output

No response

Expected Behavior

It is not possible to change the metro for an existing VRF in the Metal API: https://deploy.equinix.com/developers/api/metal#tag/VRFs/operation/updateVrf

When the metro attribute is changed for an existing VRF in terraform configuration, the provider should delete the existing VRF and create a new one in the specified metro.

Actual Behavior

When the metro attribute is changed for an existing VRF, the terraform provider throws an error after apply because the value in state does not match the value in config.

Steps to Reproduce

  1. Create a VRF with the equinix_metal_vrf resource
  2. Run terraform plan/apply
  3. Change the metro attribute of the resource
  4. Run terraform plan/apply
@ctreatma ctreatma added the bug Something isn't working label Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant