-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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 does not support import #14497
Comments
Hey @cmorent, thanks for both the issue and the PR! However, the resource During an We've had several internal discussions on how to better handle resources that require multiple attributes set in order to import a resource, but currently don't have any concrete plans to add this yet. Thank you so much for taking a stab at this though, myself I've spent a couple hours trying to work out a solution to allow importing a cloudflare record as well 😄. For now, going to close the issue as it's a duplicate of #11219. I'll leave the PR for a while unless you wish to close it out, but for now it's currently unfeasible to add. |
Hey @grubernaut! Thanks for all of the details, it's much more clear for me now ! I will close the PR as I don't think I will work on it anymore as you say it is not feasible for now and try to find another way to import our existing cloudfare records (maybe manually or by recreating new DNS records?). |
Thanks again @cmorent, the work is greatly appreciated, regardless! Once we determine the best path forward for specifying multiple input variables on the command line, importing cloudflare records and numerous other similar resources will be a lot easier. For now though, it's a difficult path. 😄 |
For anyone else arriving here after Googling "resource cloudflare_record doesn't support import" and clicking the top result, the example syntax in the official docs works, but you (like me) may need to upgrade your cloudflare provider version ( provider "cloudflare" {
version = "~> 1.5"
}
resource "cloudflare_record" "default" {
# ...
} And then be sure to |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Feature request to support import on the cloudflare_record resource
Terraform Version
Terraform 0.9.6-dev
Affected Resource(s)
cloudflare_record
Expected Behavior
Should import an existing cloudflare record.
Actual Behavior
Generates an error that import is not supported.
Steps to Reproduce
run a terraform import cloudflare_record.<resource_name> <cloudflare_record_id>
The text was updated successfully, but these errors were encountered: