{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/6620","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/6620/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/6620/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/6620/events","html_url":"https://github.com/hashicorp/terraform/issues/6620","id":154326231,"number":6620,"title":"Cloudflare Record Fails on Existing Resources in 0.6.16","user":{"login":"michaelgrosser","id":5334267,"avatar_url":"https://avatars.githubusercontent.com/u/5334267?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelgrosser","html_url":"https://github.com/michaelgrosser","followers_url":"https://api.github.com/users/michaelgrosser/followers","following_url":"https://api.github.com/users/michaelgrosser/following{/other_user}","gists_url":"https://api.github.com/users/michaelgrosser/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelgrosser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelgrosser/subscriptions","organizations_url":"https://api.github.com/users/michaelgrosser/orgs","repos_url":"https://api.github.com/users/michaelgrosser/repos","events_url":"https://api.github.com/users/michaelgrosser/events{/privacy}","received_events_url":"https://api.github.com/users/michaelgrosser/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/aws","name":"provider/aws","color":"bfdadc"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/cloudflare","name":"provider/cloudflare","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-11T19:44:35Z","updated_at":"2016-05-26T03:07:10Z","closed_at":null,"body":"### Terraform Version\r\n0.6.16\r\n\r\n### Affected Resource(s)\r\n- cloudflare_record\r\n\r\n### Terraform Configuration Files\r\n```hcl\r\nresource \"aws_instance\" \"vpn\" {\r\n  ami = \"[REDACTED]\"\r\n  instance_type = \"t2.micro\"\r\n  subnet_id = \"[REDACTED]\"\r\n  security_groups = [\"[REDACTED]\"]\r\n  key_name = \"vpn-key\"\r\n  source_dest_check = false\r\n}\r\n\r\nresource \"aws_eip\" \"vpn\" {\r\n    instance = \"${aws_instance.vpn.id}\"\r\n    vpc = true\r\n    depends_on = [\"aws_instance.vpn\"]\r\n}\r\n\r\nresource \"cloudflare_record\" \"vpn\" {\r\n    domain = \"[REDACTED]\"\r\n    name = \"vpn\"\r\n    value = \"${aws_eip.vpn.public_dns}\"\r\n    type = \"CNAME\"\r\n    ttl = 1\r\n}\r\n```\r\n\r\n### Expected Behavior\r\nI 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\r\n\r\n### Actual Behavior\r\nerror:\r\n* cloudflare_record.vpn: Error from makeRequest: {\"success\":false,\"errors\":[{\"code\":7003,\"message\":\"Could not route to \\/zones\\/=[REDACTED]\\/dns_records\\/REDACTED], perhaps your object identifier is invalid?\"},{\"code\":7000,\"message\":\"No route for that URI\"}],\"messages\":[],\"result\":null}\r\n\r\n### Steps to Reproduce\r\n1. run terraform plan or apply on a pre-existing Terrform project with a Cloudflare Record. You do not need to have changed the cloudflare_record resource.\r\n\r\nThe 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.\r\n\r\nPerhaps this relates somehow to #5508 or #6449 as those look to be the only changes to the cloudflare_record resource in 0.6.16?"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/221766231","html_url":"https://github.com/hashicorp/terraform/issues/6620#issuecomment-221766231","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/6620","id":221766231,"user":{"login":"mwarkentin","id":67560,"avatar_url":"https://avatars.githubusercontent.com/u/67560?v=3","gravatar_id":"","url":"https://api.github.com/users/mwarkentin","html_url":"https://github.com/mwarkentin","followers_url":"https://api.github.com/users/mwarkentin/followers","following_url":"https://api.github.com/users/mwarkentin/following{/other_user}","gists_url":"https://api.github.com/users/mwarkentin/gists{/gist_id}","starred_url":"https://api.github.com/users/mwarkentin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwarkentin/subscriptions","organizations_url":"https://api.github.com/users/mwarkentin/orgs","repos_url":"https://api.github.com/users/mwarkentin/repos","events_url":"https://api.github.com/users/mwarkentin/events{/privacy}","received_events_url":"https://api.github.com/users/mwarkentin/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T03:07:10Z","updated_at":"2016-05-26T03:07:10Z","body":"I'm seeing the same issue with my cloudflare resources."}}
{"actor":{"display_login":"mwarkentin"}}