You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you import one infoblox_ip_allocation resource, it will convert all existing infoblox_ip_allocation resources to the v2 schema and thereby delete all of the information in a v1 infoblox_ip_allocation resource. This is yet ANOTHER roadblock in the way of actually upgrading from v1 of the provider.
Here is an example of what happened to the in the state file when I imported a different infoblox_ip_allocation resource:
Now I can't even pull the info for the resource out of the state file to import it (after removing it from state first, because the infoblox v2 provider won't allow updating an infoblox_ip_allocation resource in place).
Please have the import function ONLY touch the resource that is being imported.
The text was updated successfully, but these errors were encountered:
Hi @grimm26, Certainly! Could you please provide additional details about the specific versions you are encountering issues with? This will help me better understand the context and provide more targeted assistance.
Hi @grimm26, Certainly! Could you please provide additional details about the specific versions you are encountering issues with? This will help me better understand the context and provide more targeted assistance.
I have infoblox resources that have been created and managed with v1.1.1 of the infoblox provider. I am attempting to upgrade to v2.5.0 of the infoblox provider. the infoblox_ip_allocation resource is the only one that we use that does not allow direct upgrade from v1.1.1 to v2.5.0 so those resources have to be removed from terraform state and then imported again.
The problem is that once I remove and import the first one, it changes the data structure of ALL infoblox_ip_allocation resources in the state file. This effectively deletes all of the information out of the state file for those resources thereby breaking my migration.
My migration steps roughly were:
terraform state list |grep infoblox_ip_allocation
loop through infoblox_ip_allocation resources found:
terraform state show infoblox_ip_allocation.foo # save info
terraform state rm infoblox_ip_allocation.foo
add terraform id to HOST record (creating new HOST record if needed)
terraform import infoblox_ip_allocation.foo XXXXXXXX
The first time through that loop, all of the information for other infoblox_ip_allocation resources is deleted.
I ended up writing a script to just manually edit the state file to finally be over with this years long debacle of trying to upgrade from v1.1.1
When you import one
infoblox_ip_allocation
resource, it will convert all existinginfoblox_ip_allocation
resources to the v2 schema and thereby delete all of the information in a v1infoblox_ip_allocation
resource. This is yet ANOTHER roadblock in the way of actually upgrading from v1 of the provider.Here is an example of what happened to the in the state file when I imported a different infoblox_ip_allocation resource:
became
Now I can't even pull the info for the resource out of the state file to import it (after removing it from state first, because the infoblox v2 provider won't allow updating an infoblox_ip_allocation resource in place).
Please have the import function ONLY touch the resource that is being imported.
The text was updated successfully, but these errors were encountered: