{"action":"closed","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/6845","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/6845/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/6845/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/6845/events","html_url":"https://github.com/hashicorp/terraform/issues/6845","id":156475342,"number":6845,"title":"Diffs didn't match during apply when modifying aws_instance tags","user":{"login":"RoeiA","id":8946031,"avatar_url":"https://avatars.githubusercontent.com/u/8946031?v=3","gravatar_id":"","url":"https://api.github.com/users/RoeiA","html_url":"https://github.com/RoeiA","followers_url":"https://api.github.com/users/RoeiA/followers","following_url":"https://api.github.com/users/RoeiA/following{/other_user}","gists_url":"https://api.github.com/users/RoeiA/gists{/gist_id}","starred_url":"https://api.github.com/users/RoeiA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoeiA/subscriptions","organizations_url":"https://api.github.com/users/RoeiA/orgs","repos_url":"https://api.github.com/users/RoeiA/repos","events_url":"https://api.github.com/users/RoeiA/events{/privacy}","received_events_url":"https://api.github.com/users/RoeiA/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/waiting-response","name":"waiting-response","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-05-24T10:39:40Z","updated_at":"2016-07-20T19:35:08Z","closed_at":"2016-07-20T19:35:08Z","body":"Hello,\r\n\r\nFirst i'd like to thank you all for this wonderful tool.\r\nI'm running terraform 0.6.16 and have a case of _diffs didn't match during apply. This is a bug with Terraform and should be reported as a GitHub Issue._\r\n\r\ni'm trying to modify tags on aws_instances. my terraform config is:\r\n\r\n```\r\nvariable \"subnet_ids\" {}\r\nvariable \"instance_count\" {}\r\nvariable \"instance_type\" {}\r\nvariable \"ami\" {}\r\nvariable \"security_groups\" {}\r\nvariable \"instance_name\" {}\r\nvariable \"is_public_address\" {}\r\nvariable \"userdata_scripts\" {}\r\nvariable \"dns_zone_id\" {}\r\nvariable \"dummy_dep\" {}\r\nvariable \"key_name\" {}\r\n\r\nresource \"aws_instance\" \"component_instance\" {\r\n  ami                         = \"${var.ami}\"\r\n  count                       = \"${var.instance_count}\"\r\n  instance_type               = \"${var.instance_type}\"\r\n  subnet_id                   = \"${element(split(\",\", var.subnet_ids), count.index % 2)}\"\r\n  security_groups             = [\"${split(\",\", var.security_groups)}\"]\r\n  key_name                    = \"${var.key_name}\"\r\n  associate_public_ip_address = \"${var.is_public_address}\"\r\n  user_data                   = \"${element(split(\",\", var.userdata_scripts), count.index)}\"\r\n\r\n  lifecycle {\r\n    ignore_changes = [ \"security_groups\" ]\r\n    create_before_destroy = true\r\n  }\r\n\r\n  tags {\r\n    Name = \"${var.instance_name}${count.index}\"\r\n    depends_id = \"${var.dummy_dep}\"\r\n  }\r\n}\r\n\r\noutput \"ips\" {\r\n  value = \"${join(\",\", aws_instance.component_instance.*.private_ip)}\"\r\n}\r\n```\r\n\r\nwhen I add a tag, or change the name of an existing tag I get the following:\r\n_* aws_instance.component_instance.0: diffs didn't match during apply. This is a bug with Terraform and should be reported as a GitHub Issue._\r\n\r\nif I run a second apply I get the same thing, where in other cases it somehow helped.\r\n\r\nThanks for any help."}}
{"actor":{"display_login":"catsby"}}