-
Notifications
You must be signed in to change notification settings - Fork 630
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 record import support #5
Comments
Not sure how your ticketing system works but are there any progress on this? |
Hey @mwarkentin + @glesperance, thanks for the issue! While, I would absolutely love to be able to add this functionality to cloudflare_record, it's currently not possible inside of Terraform. More info on 'why' can be found here: hashicorp/terraform#14497 (comment), but tl;dr: Terraform Import accepts a single key after the resource identifier, usually that specific resource's We have had discussions internally, mostly around UX, on how to allow for multiple variable imports to happen, so as to bypass this issue, but with the 0.10 changes coming, it may be a while yet before we can circle back to adding this functionality. Once again, I'm sorry we cannot fulfill this request at this time, as I would personally love to be able to add Going to leave this issue open, however, so duplicate feature requests aren't opened. |
like to bump this and hopefully this can be circled back to eventually. |
It looks like there's a PR for it that's been sitting for a while: https://github.com/terraform-providers/terraform-provider-cloudflare/pull/19 |
@grubernaut as @mwarkentin made the link, I have a PR open that works around this issue of a single import variable. It isn't the most elegant solution but it does work and gets the job done. I'd love to see the PR merged in as it looks like quite a few people are waiting for this so we don't have to delete and recreate our DNS records. |
We have an importer script in the style of terraforming for this that might be useful to others for bulk import - https://github.com/brave/cf2tf |
I came here after trying to import a For some reason... the docs say it is supported, I'm not sure why that is! |
…le-host_header_override missing bracket after merge conflict
Record importing is supported. Closing. |
This issue was originally opened by @mwarkentin as hashicorp/terraform#11219. It was migrated here as part of the provider split. The original body of the issue is below.
Terraform Version
All.
Affected Resource(s)
Please list the resources as a list, for example:
cloudflare_record
Expected Behavior
Terraform supports import of existing cloudflare records into state.
Important Factoids
Need to determine how the record would be referenced:
References
First reported in hashicorp/terraform#3715 but closed as
terraform import
wasn't a thing.The text was updated successfully, but these errors were encountered: