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

fix: force recreation of VRF if metro or project ID changes #790

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

ctreatma
Copy link
Contributor

While testing a Terraform module that uses the VRF resource, I ran into errors during terraform apply because I changed a metro or project ID variable and Terraform attempted to use my existing VRF rather than deleting it and recreating one in the correct metro or project.

This updates the metal_vrf resource schema so that Terraform will delete and recreate a VRF if the metro or project ID changes, since those values cannot be updated for a VRF.

Fixes #652

@ctreatma ctreatma requested a review from a team as a code owner September 30, 2024 19:29
@ctreatma ctreatma changed the title fix: force new VRF if metro or project ID changes fix: force recreation of resource VRF if metro or project ID changes Sep 30, 2024
@ctreatma ctreatma changed the title fix: force recreation of resource VRF if metro or project ID changes fix: force recreation of VRF if metro or project ID changes Sep 30, 2024
@cprivitere cprivitere merged commit b165549 into main Oct 3, 2024
6 of 7 checks passed
@cprivitere cprivitere deleted the vrf_forcenew branch October 3, 2024 16:14
Copy link

This PR is included in version 2.7.0 🎉

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

Successfully merging this pull request may close these issues.

[Bug]: Changing metro for equinix_metal_vrf should recreate resource
3 participants