infobloxopen / terraform-provider-infoblox

Infoblox NIOS Terraform Provider
https://github.com/infobloxopen/terraform-provider-infoblox
Mozilla Public License 2.0
67 stars 72 forks source link

cannot find apropriate object on NIOS side for resource with ID '': not found; removing the resource from Terraform state #363

Open GokanDonmez opened 2 weeks ago

GokanDonmez commented 2 weeks ago

I'm getting the following error when trying to run my code:

cannot find apropriate object on NIOS side for resource with ID '': not found; removing the resource from Terraform state

However I can't troubleshoot this as it gives me no information as to what ID the object has or from which object it is coming from. I already looked through my state file and searched for "id": " but no line has an empty ID.

I am on the latest version of the provider. And I'm creating an infoblox_ip_allocation & infoblox_ip_association only. Nothing else.

GokanDonmez commented 1 week ago

I believe the issue was that the allocation was deleted in the state file but the infoblox_ip_association was still there. Deleting the association from the state fixed the issue. If anyone else runs into this: compare the amount of allocation to associations in your state file.