{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/3574","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/3574/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/3574/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/3574/events","html_url":"https://github.com/hashicorp/terraform/pull/3574","id":112451170,"number":3574,"title":"provider/aws: Downcase Route 53 record names in statefile","user":{"login":"catsby","id":61721,"avatar_url":"https://avatars.githubusercontent.com/u/61721?v=3","gravatar_id":"","url":"https://api.github.com/users/catsby","html_url":"https://github.com/catsby","followers_url":"https://api.github.com/users/catsby/followers","following_url":"https://api.github.com/users/catsby/following{/other_user}","gists_url":"https://api.github.com/users/catsby/gists{/gist_id}","starred_url":"https://api.github.com/users/catsby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catsby/subscriptions","organizations_url":"https://api.github.com/users/catsby/orgs","repos_url":"https://api.github.com/users/catsby/repos","events_url":"https://api.github.com/users/catsby/events{/privacy}","received_events_url":"https://api.github.com/users/catsby/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"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-20T20:14:58Z","updated_at":"2015-11-10T20:49:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hashicorp/terraform/pulls/3574","html_url":"https://github.com/hashicorp/terraform/pull/3574","diff_url":"https://github.com/hashicorp/terraform/pull/3574.diff","patch_url":"https://github.com/hashicorp/terraform/pull/3574.patch"},"body":"Route 53 apparently down cases any record name you send it, though this is not documented anywhere I could find. \r\n\r\nCurrently, if you supply a mixed case name like so:\r\n```\r\nresource \"aws_route53_record\" \"other\" {\r\n    zone_id = \"${aws_route53_zone.primary.id}\"\r\n    name = \"TesTing\"\r\n    type = \"A\"\r\n    ttl = \"30\"\r\n    records = [\"127.0.0.3\"]\r\n}\r\n```\r\n\r\nThe record will be created, but with a lower case name `testing` and not `TesTing`. The resource compares the names as is, so there is no match found.\r\n\r\n- https://github.com/hashicorp/terraform/blob/master/builtin/providers/aws/resource_aws_route53_record.go#L254\r\n\r\nThis PR does 3 things:\r\n\r\n- stores a lowercase version of the Route 53 `name` in the state\r\n- uses lowercase for comparison of records from the API \r\n- updates a test to prevent regressions \r\n\r\n\r\n\r\nFixes https://github.com/hashicorp/terraform/issues/3564 , and should be backwards compatible safe, because if you have a mixed case name right now, then Terraform is giving you a plan/apply loop. \r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/155561423","html_url":"https://github.com/hashicorp/terraform/pull/3574#issuecomment-155561423","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/3574","id":155561423,"user":{"login":"phinze","id":37534,"avatar_url":"https://avatars.githubusercontent.com/u/37534?v=3","gravatar_id":"","url":"https://api.github.com/users/phinze","html_url":"https://github.com/phinze","followers_url":"https://api.github.com/users/phinze/followers","following_url":"https://api.github.com/users/phinze/following{/other_user}","gists_url":"https://api.github.com/users/phinze/gists{/gist_id}","starred_url":"https://api.github.com/users/phinze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phinze/subscriptions","organizations_url":"https://api.github.com/users/phinze/orgs","repos_url":"https://api.github.com/users/phinze/repos","events_url":"https://api.github.com/users/phinze/events{/privacy}","received_events_url":"https://api.github.com/users/phinze/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T20:49:34Z","updated_at":"2015-11-10T20:49:34Z","body":"LGTM"}}