{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/2605","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/2605/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/2605/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/2605/events","html_url":"https://github.com/hashicorp/terraform/issues/2605","id":92556276,"number":2605,"title":"empty aws_db_instance identifier with recent validation changes","user":{"login":"CpuID","id":916201,"avatar_url":"https://avatars.githubusercontent.com/u/916201?v=3","gravatar_id":"","url":"https://api.github.com/users/CpuID","html_url":"https://github.com/CpuID","followers_url":"https://api.github.com/users/CpuID/followers","following_url":"https://api.github.com/users/CpuID/following{/other_user}","gists_url":"https://api.github.com/users/CpuID/gists{/gist_id}","starred_url":"https://api.github.com/users/CpuID/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CpuID/subscriptions","organizations_url":"https://api.github.com/users/CpuID/orgs","repos_url":"https://api.github.com/users/CpuID/repos","events_url":"https://api.github.com/users/CpuID/events{/privacy}","received_events_url":"https://api.github.com/users/CpuID/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":4,"created_at":"2015-07-02T05:57:31Z","updated_at":"2015-07-02T11:44:34Z","closed_at":null,"body":"@radeksimko @phinze interesting side effect of https://github.com/hashicorp/terraform/pull/2516 (tested on 0.6.0), we seemed to have an RDS instance with an empty identifier (the Instance Name in the Console was set to \"wordpress\"), when I tried to set it in the .tf file to \"wordpress\" it tried to recreate it. There was no identifier attribute in the tfstate file, once I added one though it agreed that everything was consistent (no changes required).\r\n\r\nWould you agree this is an expected action? Would the RDS instance actually still have no identifier attached? or?\r\n\r\nWas getting this after updating the .tf file without changing .tfstate:\r\n\r\n```\r\n  * aws_db_instance.wordpress: only lowercase alphanumeric characters and hyphens allowed in \"identifier\"\r\n  * aws_db_instance.wordpress: first character of \"identifier\" must be a letter\r\n```"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/118006603","html_url":"https://github.com/hashicorp/terraform/issues/2605#issuecomment-118006603","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/2605","id":118006603,"user":{"login":"CpuID","id":916201,"avatar_url":"https://avatars.githubusercontent.com/u/916201?v=3","gravatar_id":"","url":"https://api.github.com/users/CpuID","html_url":"https://github.com/CpuID","followers_url":"https://api.github.com/users/CpuID/followers","following_url":"https://api.github.com/users/CpuID/following{/other_user}","gists_url":"https://api.github.com/users/CpuID/gists{/gist_id}","starred_url":"https://api.github.com/users/CpuID/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CpuID/subscriptions","organizations_url":"https://api.github.com/users/CpuID/orgs","repos_url":"https://api.github.com/users/CpuID/repos","events_url":"https://api.github.com/users/CpuID/events{/privacy}","received_events_url":"https://api.github.com/users/CpuID/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T11:44:34Z","updated_at":"2015-07-02T11:44:34Z","body":"I think the chain of events was as follows:\r\n\r\n- Created RDS instance via AWS Console, including an identifier of \"wordpress\"\r\n- Backported (added to .tf file), with an identifier of \"\"\r\n- Terraform 0.3.6 (possibly earlier also) -> 0.5.2 (possibly 0.5.3 also, untested) didn't verify the state of the identifier attribute, was completely ignored.\r\n- Terraform 0.6.0 starts validating identifier, which triggers my issues, since resolved.\r\n\r\nSound plausible?"}}