{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/2126","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/2126/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/2126/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/2126/events","html_url":"https://github.com/hashicorp/terraform/issues/2126","id":82115749,"number":2126,"title":"ebs_block_volume causing a refresh","user":{"login":"mzupan","id":205373,"avatar_url":"https://avatars.githubusercontent.com/u/205373?v=3","gravatar_id":"","url":"https://api.github.com/users/mzupan","html_url":"https://github.com/mzupan","followers_url":"https://api.github.com/users/mzupan/followers","following_url":"https://api.github.com/users/mzupan/following{/other_user}","gists_url":"https://api.github.com/users/mzupan/gists{/gist_id}","starred_url":"https://api.github.com/users/mzupan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzupan/subscriptions","organizations_url":"https://api.github.com/users/mzupan/orgs","repos_url":"https://api.github.com/users/mzupan/repos","events_url":"https://api.github.com/users/mzupan/events{/privacy}","received_events_url":"https://api.github.com/users/mzupan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-28T20:42:02Z","updated_at":"2015-05-28T21:15:05Z","closed_at":"2015-05-28T21:15:05Z","body":"I have the following\r\n\r\n```\r\nresource \"aws_instance\" \"ci\" {\r\n  ami = \"${lookup(var.ami, var.env)}\"\r\n  instance_type = \"${lookup(var.instance-type-ci, var.env)}\"\r\n  key_name = \"${lookup(var.key, var.env)}\"\r\n  vpc_security_group_ids = [\r\n      \"${aws_security_group.internal-default.id}\",\r\n      \"${aws_security_group.internal-web.id}\",\r\n\r\n  ]\r\n  subnet_id = \"${aws_subnet.mgmt.2.id}\"\r\n\r\n  iam_instance_profile = \"${aws_iam_instance_profile.ci.id}\"\r\n\r\n  tags {\r\n      CostCenter = \"web\"\r\n      Name = \"WEB ci.${var.env}\"\r\n      Roles = \"ci\"\r\n  }\r\n  user_data = \"ci.${var.env}.urthecast.com\"\r\n  private_ip = \"${lookup(var.vpc-subnet, var.env)}.2.20\"\r\n\r\n  \r\n  ebs_block_device = {\r\n    device_name = \"/dev/xvdj\"\r\n    volume_size = \"200\"\r\n    delete_on_termination = false\r\n    volume_type = \"gp2\"\r\n  }\r\n}\r\n```\r\n\r\nWhen I do a plan I get\r\n\r\n```\r\n-/+ aws_instance.ci\r\n    ami:                                               \"ami-c4a1b1ac\" => \"ami-c4a1b1ac\"\r\n    availability_zone:                                 \"us-east-1d\" => \"<computed>\"\r\n    ebs_block_device.#:                                \"2\" => \"1\"\r\n    ebs_block_device.3871590789.delete_on_termination: \"false\" => \"0\" (forces new resource)\r\n    ebs_block_device.3871590789.device_name:           \"/dev/xvdj\" => \"/dev/xvdj\" (forces new resource)\r\n    ebs_block_device.3871590789.encrypted:             \"false\" => \"<computed>\"\r\n    ebs_block_device.3871590789.iops:                  \"600\" => \"<computed>\"\r\n    ebs_block_device.3871590789.snapshot_id:           \"\" => \"<computed>\"\r\n    ebs_block_device.3871590789.volume_size:           \"200\" => \"200\" (forces new resource)\r\n    ebs_block_device.3871590789.volume_type:           \"gp2\" => \"gp2\" (forces new resource)\r\n```\r\n\r\nits an EBS backed instance.. here's my state\r\n\r\n```\r\n                \"aws_instance.ci\": {\r\n                    \"type\": \"aws_instance\",\r\n                    \"depends_on\": [\r\n                        \"aws_iam_instance_profile.ci\",\r\n                        \"aws_security_group.internal-default\",\r\n                        \"aws_security_group.internal-web\",\r\n                        \"aws_subnet.mgmt\"\r\n                    ],\r\n                    \"primary\": {\r\n                        \"id\": \"i-479604b8\",\r\n                        \"attributes\": {\r\n                            \"ami\": \"ami-c4a1b1ac\",\r\n                            \"availability_zone\": \"us-east-1d\",\r\n                            \"ebs_block_device.#\": \"2\",\r\n                            \"ebs_block_device.3871590789.delete_on_termination\": \"false\",\r\n                            \"ebs_block_device.3871590789.device_name\": \"/dev/xvdj\",\r\n                            \"ebs_block_device.3871590789.encrypted\": \"false\",\r\n                            \"ebs_block_device.3871590789.iops\": \"600\",\r\n                            \"ebs_block_device.3871590789.snapshot_id\": \"\",\r\n                            \"ebs_block_device.3871590789.volume_size\": \"200\",\r\n                            \"ebs_block_device.3871590789.volume_type\": \"gp2\",\r\n                            \"ebs_block_device.630982455.delete_on_termination\": \"true\",\r\n                            \"ebs_block_device.630982455.device_name\": \"/dev/sda\",\r\n                            \"ebs_block_device.630982455.encrypted\": \"false\",\r\n                            \"ebs_block_device.630982455.iops\": \"60\",\r\n                            \"ebs_block_device.630982455.snapshot_id\": \"snap-314ff043\",\r\n                            \"ebs_block_device.630982455.volume_size\": \"20\",\r\n                            \"ebs_block_device.630982455.volume_type\": \"gp2\",\r\n```\r\n\r\n```\r\nTerraform v0.5.2\r\n```"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/106601967","html_url":"https://github.com/hashicorp/terraform/issues/2126#issuecomment-106601967","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/2126","id":106601967,"user":{"login":"mzupan","id":205373,"avatar_url":"https://avatars.githubusercontent.com/u/205373?v=3","gravatar_id":"","url":"https://api.github.com/users/mzupan","html_url":"https://github.com/mzupan","followers_url":"https://api.github.com/users/mzupan/followers","following_url":"https://api.github.com/users/mzupan/following{/other_user}","gists_url":"https://api.github.com/users/mzupan/gists{/gist_id}","starred_url":"https://api.github.com/users/mzupan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzupan/subscriptions","organizations_url":"https://api.github.com/users/mzupan/orgs","repos_url":"https://api.github.com/users/mzupan/repos","events_url":"https://api.github.com/users/mzupan/events{/privacy}","received_events_url":"https://api.github.com/users/mzupan/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T21:15:05Z","updated_at":"2015-05-28T21:15:05Z","body":"i'm gonna close it since i'm using that PR now and its working as expected. "}}