-
Notifications
You must be signed in to change notification settings - Fork 626
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
cloudflare_custom_hostname import does not import anything #783
Comments
@bryanchug Can you please provide the debug log? You can redact/clean up any sensitive information from it. |
Hey @jacobbednarz, here's the debug log. https://gist.github.com/bryanchug/cc640f114890cc8c55e84798dfb0c831 |
Hi @jacobbednarz -- I was helping @bryanchug look into this and think I can clarify a few points:
Looking at the state file for the imported resource I see this:
I hope this helps clarify the issue. :) |
Thanks @bryanchug and @catemlitten, that all makes sense now. I'll take a pass at fixing this one shortly. |
Within the `Read` function, we weren't setting the hostname to the imported value (assuming it was always provided) which has left it missing in state and subsequently causing replacements unnecessarily. Fixes cloudflare#783
I've had a look at this one and pushed up #788 to address. You should be able to run this locally (after building the binary) and have it solve your issue. |
Within the `Read` function, we weren't setting the hostname to the imported value (assuming it was always provided) which has left it missing in state and subsequently causing replacements unnecessarily. Fixes #783
We might just wait for the next version release. Thanks @jacobbednarz! |
fail CI if the struct size can be improved
Terraform Version
Affected Resource(s)
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
Debug Output
Skipped this to avoid showing secrets
Panic Output
No panic output
Expected Behavior
What should have happened?
terraform show
should have shown info such as hostname after doing an import like so:terraform import cloudflare_custom_hostname.custom_hostname <ZONE_ID>/<CUSTOM_HOSTNAME_ID>
Actual Behavior
What actually happened?
terraform show
doesn't show anything, only the IDs previously inputted:Steps to Reproduce
Important Factoids
None.
References
#749 #769
#770 #761 #746
The text was updated successfully, but these errors were encountered: