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

claudflare do not allow changing record type #5316

Closed
nolith opened this issue Feb 25, 2016 · 4 comments · Fixed by #5353
Closed

claudflare do not allow changing record type #5316

nolith opened this issue Feb 25, 2016 · 4 comments · Fixed by #5353
Assignees
Labels
bug provider/cloudflare waiting-response An issue/pull request is waiting for a response from the community

Comments

@nolith
Copy link

nolith commented Feb 25, 2016

I changed a cloudflare record from CNAME to A and terraform planned it for editing but this type of change is not allowed.

Here the log (ip and domains redacted)

cloudflare_record.example: Modifying...
  type:  "CNAME" => "A"
  value: "example.com" => "127.0.0.1"
Error applying plan:

1 error(s) occurred:

* cloudflare_record.example: Failed to update CloudFlare Record: API Error: Editing types after a record has been created is not allowed.

terraform v0.6.11

@stack72
Copy link
Contributor

stack72 commented Feb 25, 2016

Hi @nolith - unfortunately this is something that CloudFlare forbids rather than terraform. What you would need to do in this case would be to create a new piece of terraform config and then let terraform destroy the old record. This is also the same on their site. Once an A record has been created, it cannot be changed to a CNAME

So effectively a destroy then create rather than an update

Hopefully this helps

Paul

@stack72 stack72 added the waiting-response An issue/pull request is waiting for a response from the community label Feb 25, 2016
@stack72 stack72 self-assigned this Feb 25, 2016
@coen-hyde
Copy link

But shouldn't the destroy -> create be something that Terraform takes care of?

@stack72
Copy link
Contributor

stack72 commented Feb 27, 2016

@coen-hyde - you are indeed correct - just making a fix for this right now.

Paul

@ghost
Copy link

ghost commented Apr 27, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug provider/cloudflare waiting-response An issue/pull request is waiting for a response from the community
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants