-
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 Fails on Existing Resources in 0.6.16 #6620
Comments
I can reproduce this issue with non-AWS resource as well. |
I can reproduce this too. Also, if you...
...the #6449 (comment) notes a change in a library in the |
I found a rather messy way to work around this issue. First, go to DNS Records section on the CloudFlare website and try to find a XHR request with On the response payload, find result key. You will see an array with existing DNS records like this. Note the ID you would like to associate with existing Terraform resource: Next, go to your terraform.tfstate, find a CloudFlare Record resource you would like to update, and replace value of the After these two steps, |
Thank you for the workaround @premist, worked great for me! I'm always nervous hand-editing terraform.tfstate, but since this issue was due to a lib upgrade that adds support for CloudFlare's "proxying" feature to the Terraform provider, it seems worth the pain! Related to this change, if you have any domains that are currently proxied by CloudFlare, you'll need to add
|
I'm seeing the same issue with my cloudflare resources. |
I am also seeing this issue. |
Hello friends – I have patched this in the |
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. |
Terraform Version
0.6.16
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
I was building only to replace an EC2 instance with a new one running a new AMI. I expected the instance to get replaced and assigned the Elastic IP assigned to it. The Cloudflare record should not have been modified since it's tied to the EIP. I expected the build to just replace the EC2 instance like it would have in 0.6.15
Actual Behavior
error:
Steps to Reproduce
The Cloudflare record nor the zone have been modified outside of Terrafom. I am able to reproduce this in every Terraform project I have with a cloudflare_record resource. So it is not limited to a particular instance. All resources work correctly if I roll back to Terraform 0.6.15.
Perhaps this relates somehow to #5508 or #6449 as those look to be the only changes to the cloudflare_record resource in 0.6.16?
The text was updated successfully, but these errors were encountered: