{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/3539","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/3539/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/3539/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/3539/events","html_url":"https://github.com/hashicorp/terraform/issues/3539","id":112046378,"number":3539,"title":"Changes to aws_elasticsearch_domain not applying","user":{"login":"rafaelmagu","id":197444,"avatar_url":"https://avatars.githubusercontent.com/u/197444?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelmagu","html_url":"https://github.com/rafaelmagu","followers_url":"https://api.github.com/users/rafaelmagu/followers","following_url":"https://api.github.com/users/rafaelmagu/following{/other_user}","gists_url":"https://api.github.com/users/rafaelmagu/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelmagu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelmagu/subscriptions","organizations_url":"https://api.github.com/users/rafaelmagu/orgs","repos_url":"https://api.github.com/users/rafaelmagu/repos","events_url":"https://api.github.com/users/rafaelmagu/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelmagu/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-18T22:30:10Z","updated_at":"2015-10-20T15:06:43Z","closed_at":null,"body":"Now that #3381 has been released, I've tried adding a couple of ES domains to our plans. We already had ES domains created manually via the AWS GUI, so I expected TF to warn me about a name conflict. Instead, it just added the two ARNs to its state.\r\n\r\nI've then proceeded to change a snapshot setting, and TF hangs while trying to apply modifications:\r\n```\r\n2015/10/19 11:23:03 [DEBUG] terraform-provider-aws: 2015/10/19 11:23:03 [TRACE] Waiting 1.6s before next try\r\n2015/10/19 11:23:03 [DEBUG] terraform-provider-aws: 2015/10/19 11:23:03 [TRACE] Waiting 1.6s before next try\r\n2015/10/19 11:23:04 [DEBUG] vertex root, waiting for: provider.aws (close)\r\n2015/10/19 11:23:05 [DEBUG] terraform-provider-aws: 2015/10/19 11:23:05 [TRACE] Waiting 3.2s before next try\r\n2015/10/19 11:23:05 [DEBUG] terraform-provider-aws: 2015/10/19 11:23:05 [TRACE] Waiting 3.2s before next try\r\n2015/10/19 11:23:08 [DEBUG] vertex provider.aws (close), waiting for: aws_elasticsearch_domain.elastic-log\r\n2015/10/19 11:23:09 [DEBUG] vertex root, waiting for: provider.aws (close)\r\n2015/10/19 11:23:09 [DEBUG] terraform-provider-aws: 2015/10/19 11:23:09 [TRACE] Waiting 6.4s before next try\r\n2015/10/19 11:23:09 [DEBUG] terraform-provider-aws: 2015/10/19 11:23:09 [TRACE] Waiting 6.4s before next try\r\n2015/10/19 11:23:13 [DEBUG] vertex provider.aws (close), waiting for: aws_elasticsearch_domain.elastic-log\r\n2015/10/19 11:23:14 [DEBUG] vertex root, waiting for: provider.aws (close)\r\n2015/10/19 11:23:15 [DEBUG] terraform-provider-aws: 2015/10/19 11:23:15 [TRACE] Waiting 10s before next try\r\n2015/10/19 11:23:15 [DEBUG] terraform-provider-aws: 2015/10/19 11:23:15 [TRACE] Waiting 10s before next try\r\n2015/10/19 11:23:18 [DEBUG] vertex provider.aws (close), waiting for: aws_elasticsearch_domain.elastic-log\r\n2015/10/19 11:23:19 [DEBUG] vertex root, waiting for: provider.aws (close)\r\n2015/10/19 11:23:23 [DEBUG] vertex provider.aws (close), waiting for: aws_elasticsearch_domain.elastic-log\r\n2015/10/19 11:23:24 [DEBUG] vertex root, waiting for: provider.aws (close)\r\n2015/10/19 11:23:26 [DEBUG] terraform-provider-aws: 2015/10/19 11:23:26 [TRACE] Waiting 10s before next try\r\n2015/10/19 11:23:26 [DEBUG] terraform-provider-aws: 2015/10/19 11:23:26 [TRACE] Waiting 10s before next try\r\n2015/10/19 11:23:28 [DEBUG] vertex provider.aws (close), waiting for: aws_elasticsearch_domain.elastic-log\r\n2015/10/19 11:23:29 [DEBUG] vertex root, waiting for: provider.aws (close)\r\n2015/10/19 11:23:33 [DEBUG] vertex provider.aws (close), waiting for: aws_elasticsearch_domain.elastic-log\r\n2015/10/19 11:23:34 [DEBUG] vertex root, waiting for: provider.aws (close)\r\n2015/10/19 11:23:36 [DEBUG] terraform-provider-aws: 2015/10/19 11:23:36 [TRACE] Waiting 10s before next try\r\n2015/10/19 11:23:36 [DEBUG] terraform-provider-aws: 2015/10/19 11:23:36 [TRACE] Waiting 10s before next try\r\n2015/10/19 11:23:38 [DEBUG] vertex provider.aws (close), waiting for: aws_elasticsearch_domain.elastic-log\r\n2015/10/19 11:23:39 [DEBUG] vertex root, waiting for: provider.aws (close)\r\n2015/10/19 11:23:43 [DEBUG] vertex provider.aws (close), waiting for: aws_elasticsearch_domain.elastic-log\r\n2015/10/19 11:23:44 [DEBUG] vertex root, waiting for: provider.aws (close)\r\n2015/10/19 11:23:46 [DEBUG] terraform-provider-aws: 2015/10/19 11:23:46 [TRACE] Waiting 10s before next try\r\n2015/10/19 11:23:46 [DEBUG] terraform-provider-aws: 2015/10/19 11:23:46 [TRACE] Waiting 10s before next try\r\n2015/10/19 11:23:48 [DEBUG] vertex provider.aws (close), waiting for: aws_elasticsearch_domain.elastic-log\r\n2015/10/19 11:23:49 [DEBUG] vertex root, waiting for: provider.aws (close)\r\n2015/10/19 11:23:53 [DEBUG] vertex provider.aws (close), waiting for: aws_elasticsearch_domain.elastic-log\r\n2015/10/19 11:23:54 [DEBUG] vertex root, waiting for: provider.aws (close)\r\n2015/10/19 11:23:57 [DEBUG] terraform-provider-aws: 2015/10/19 11:23:57 [TRACE] Waiting 10s before next try\r\n2015/10/19 11:23:57 [DEBUG] terraform-provider-aws: 2015/10/19 11:23:57 [TRACE] Waiting 10s before next try\r\n2015/10/19 11:23:58 [DEBUG] vertex provider.aws (close), waiting for: aws_elasticsearch_domain.elastic-log\r\n2015/10/19 11:23:59 [DEBUG] vertex root, waiting for: provider.aws (close)\r\n2015/10/19 11:24:03 [DEBUG] vertex provider.aws (close), waiting for: aws_elasticsearch_domain.elastic-log\r\n2015/10/19 11:24:04 [DEBUG] vertex root, waiting for: provider.aws (close)\r\n2015/10/19 11:24:07 [DEBUG] terraform-provider-aws: 2015/10/19 11:24:07 [TRACE] Waiting 10s before next try\r\n2015/10/19 11:24:07 [DEBUG] terraform-provider-aws: 2015/10/19 11:24:07 [TRACE] Waiting 10s before next try\r\n2015/10/19 11:24:08 [DEBUG] vertex provider.aws (close), waiting for: aws_elasticsearch_domain.elastic-log\r\n2015/10/19 11:24:09 [DEBUG] vertex root, waiting for: provider.aws (close)\r\n2015/10/19 11:24:13 [DEBUG] vertex provider.aws (close), waiting for: aws_elasticsearch_domain.elastic-log\r\n2015/10/19 11:24:14 [DEBUG] vertex root, waiting for: provider.aws (close)\r\n2015/10/19 11:24:17 [DEBUG] terraform-provider-aws: 2015/10/19 11:24:17 [TRACE] Waiting 10s before next try\r\n2015/10/19 11:24:17 [DEBUG] terraform-provider-aws: 2015/10/19 11:24:17 [TRACE] Waiting 10s before next try\r\n2015/10/19 11:24:18 [DEBUG] vertex provider.aws (close), waiting for: aws_elasticsearch_domain.elastic-log\r\n2015/10/19 11:24:19 [DEBUG] vertex root, waiting for: provider.aws (close)\r\n2015/10/19 11:24:23 [DEBUG] vertex provider.aws (close), waiting for: aws_elasticsearch_domain.elastic-log\r\n2015/10/19 11:24:24 [DEBUG] vertex root, waiting for: provider.aws (close)\r\n2015/10/19 11:24:27 [DEBUG] terraform-provider-aws: 2015/10/19 11:24:27 [TRACE] Waiting 10s before next try\r\n2015/10/19 11:24:28 [DEBUG] terraform-provider-aws: 2015/10/19 11:24:28 [TRACE] Waiting 10s before next try\r\n2015/10/19 11:24:28 [DEBUG] vertex provider.aws (close), waiting for: aws_elasticsearch_domain.elastic-log\r\n2015/10/19 11:24:29 [DEBUG] vertex root, waiting for: provider.aws (close)\r\n2015/10/19 11:24:33 [DEBUG] vertex provider.aws (close), waiting for: aws_elasticsearch_domain.elastic-log\r\n2015/10/19 11:24:34 [DEBUG] vertex root, waiting for: provider.aws (close)\r\n2015/10/19 11:24:38 [DEBUG] vertex provider.aws (close), waiting for: aws_elasticsearch_domain.elastic-log\r\n2015/10/19 11:24:38 [DEBUG] terraform-provider-aws: 2015/10/19 11:24:38 [TRACE] Waiting 10s before next try\r\n2015/10/19 11:24:38 [DEBUG] terraform-provider-aws: 2015/10/19 11:24:38 [TRACE] Waiting 10s before next try\r\n2015/10/19 11:24:39 [DEBUG] vertex root, waiting for: provider.aws (close)\r\n2015/10/19 11:24:43 [DEBUG] vertex provider.aws (close), waiting for: aws_elasticsearch_domain.elastic-log\r\n2015/10/19 11:24:44 [DEBUG] vertex root, waiting for: provider.aws (close)\r\n2015/10/19 11:24:48 [DEBUG] vertex provider.aws (close), waiting for: aws_elasticsearch_domain.elastic-log\r\n2015/10/19 11:24:48 [DEBUG] terraform-provider-aws: 2015/10/19 11:24:48 [TRACE] Waiting 10s before next try\r\n2015/10/19 11:24:48 [DEBUG] terraform-provider-aws: 2015/10/19 11:24:48 [TRACE] Waiting 10s before next try\r\n2015/10/19 11:24:49 [DEBUG] vertex root, waiting for: provider.aws (close)\r\n2015/10/19 11:24:53 [DEBUG] vertex provider.aws (close), waiting for: aws_elasticsearch_domain.elastic-log\r\n2015/10/19 11:24:54 [DEBUG] vertex root, waiting for: provider.aws (close)\r\n(...)\r\n```\r\nIt is also detecting a change in access policies applied to the domains even though the policies are the same. I am assuming the latter is because it cannot apply the changes correctly, so it isn't saving the policies either."},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/149595400","html_url":"https://github.com/hashicorp/terraform/issues/3539#issuecomment-149595400","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/3539","id":149595400,"user":{"login":"radeksimko","id":287584,"avatar_url":"https://avatars.githubusercontent.com/u/287584?v=3","gravatar_id":"","url":"https://api.github.com/users/radeksimko","html_url":"https://github.com/radeksimko","followers_url":"https://api.github.com/users/radeksimko/followers","following_url":"https://api.github.com/users/radeksimko/following{/other_user}","gists_url":"https://api.github.com/users/radeksimko/gists{/gist_id}","starred_url":"https://api.github.com/users/radeksimko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radeksimko/subscriptions","organizations_url":"https://api.github.com/users/radeksimko/orgs","repos_url":"https://api.github.com/users/radeksimko/repos","events_url":"https://api.github.com/users/radeksimko/events{/privacy}","received_events_url":"https://api.github.com/users/radeksimko/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T15:06:43Z","updated_at":"2015-10-20T15:06:43Z","body":"Hi @rafaelmagu \r\nthanks for the report. Would you mind sharing any terraform code that will help us to reproduce this (**minus any secrets**)?\r\n\r\nI'm specifically interested in the part where you've been adding existing ES domains into terraform and also some details about those ES domains - e.g. are those existing domains using the same region as your AWS provider defined in terraform code?\r\n\r\nFrom the AWS docs:\r\n\r\n> Domain names are unique across the domains owned by an account within an AWS region.\r\n"}}