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

How to import infoblox_ip_allocation when enable_dns is false? #313

Open
grimm26 opened this issue Jul 18, 2023 · 2 comments
Open

How to import infoblox_ip_allocation when enable_dns is false? #313

grimm26 opened this issue Jul 18, 2023 · 2 comments

Comments

@grimm26
Copy link

grimm26 commented Jul 18, 2023

I have infoblox_ip_allocation resources created with v1 of the provider. When dns is enabled, I set the Terraform Internal ID attribute on the host record and can the import the infoblox_ip_allocation with the v2 provider. However, with enable_dns set to false, there is no host record to add an attribute to, only the IP reservation. If I add the attribute to the IPv4 reservation terraform says it can't find it:

❯ terraform import infoblox_ip_allocation.ip 7be29190-25a6-11ee-b75f-c726b05fba4d
infoblox_ip_allocation.ip: Importing from ID "7be29190-25a6-11ee-b75f-c726b05fba4d"...
╷
│ Error: not found
│ 
│ 
@patfreeman
Copy link

Please fix.

@grimm26
Copy link
Author

grimm26 commented Dec 11, 2023

As a workaround I have found that you can manually add a disabled HOST record with a "Terraform Internal ID" extattr to the IP allocation and then delete it afterwards.

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

2 participants