{"action":"opened","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/15486","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/15486/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/15486/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/15486/events","html_url":"https://github.com/hashicorp/terraform/issues/15486","id":240949661,"number":15486,"title":"Every change to Lambda vpc_config forces a new resource","user":{"login":"adampolomski","id":10196659,"avatar_url":"https://avatars2.githubusercontent.com/u/10196659?v=3","gravatar_id":"","url":"https://api.github.com/users/adampolomski","html_url":"https://github.com/adampolomski","followers_url":"https://api.github.com/users/adampolomski/followers","following_url":"https://api.github.com/users/adampolomski/following{/other_user}","gists_url":"https://api.github.com/users/adampolomski/gists{/gist_id}","starred_url":"https://api.github.com/users/adampolomski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adampolomski/subscriptions","organizations_url":"https://api.github.com/users/adampolomski/orgs","repos_url":"https://api.github.com/users/adampolomski/repos","events_url":"https://api.github.com/users/adampolomski/events{/privacy}","received_events_url":"https://api.github.com/users/adampolomski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-06T13:04:03Z","updated_at":"2017-07-06T13:04:03Z","closed_at":null,"body":"Whenever I change anything in aws_lambda_function.vpc_config a new resource is forced. This is not great, since all Lambda versions and tags are wiped out. It should be possible to modify the existing resource instead. It's possible with AWS cli and web console.\r\n\r\nterraform plan output:\r\n> vpc_config.#:                               \"1\" => \"1\"\r\nvpc_config.0.security_group_ids.#:          \"1\" => \"1\"\r\nvpc_config.0.security_group_ids.3727755576: \"\" => \"sg-8771b8ff\" (forces new resource)\r\nvpc_config.0.security_group_ids.485992155:  \"sg-59418821\" => \"\" (forces new resource)\r\nvpc_config.0.subnet_ids.#:                  \"1\" => \"1\"\r\nvpc_config.0.subnet_ids.2894847618:         \"subnet-7f83f527\" => \"subnet-7f83f527\"\r\nvpc_config.0.vpc_id:                        \"vpc-06c59e62\" => \"<computed>\""}}
{"actor":{"display_login":"adampolomski"}}