{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/1535","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/1535/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/1535/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/1535/events","html_url":"https://github.com/hashicorp/terraform/issues/1535","id":68580682,"number":1535,"title":"0.4.2 terrafrom refresh not working for aws security groups","user":{"login":"vitalis","id":36814,"avatar_url":"https://avatars.githubusercontent.com/u/36814?v=3","gravatar_id":"","url":"https://api.github.com/users/vitalis","html_url":"https://github.com/vitalis","followers_url":"https://api.github.com/users/vitalis/followers","following_url":"https://api.github.com/users/vitalis/following{/other_user}","gists_url":"https://api.github.com/users/vitalis/gists{/gist_id}","starred_url":"https://api.github.com/users/vitalis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitalis/subscriptions","organizations_url":"https://api.github.com/users/vitalis/orgs","repos_url":"https://api.github.com/users/vitalis/repos","events_url":"https://api.github.com/users/vitalis/events{/privacy}","received_events_url":"https://api.github.com/users/vitalis/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":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-15T05:34:28Z","updated_at":"2015-04-16T10:13:12Z","closed_at":null,"body":"In version 0.4.0 the refresh was working fine, after update to 0.4.2 it does not update the data.\r\n\r\nOutput from 0.4.0:\r\n```json\r\n\"aws_security_group.application\": {\r\n    \"type\": \"aws_security_group\",\r\n    \"primary\": {\r\n        \"id\": \"sg-7ffc4816\",\r\n        \"attributes\": {\r\n            \"description\": \"Instances running application servers\",\r\n            \"egress.#\": \"0\",\r\n            \"id\": \"sg-7ffc4816\",\r\n            \"ingress.#\": \"2\",\r\n            \"ingress.2214680975.cidr_blocks.#\": \"1\",\r\n            \"ingress.2214680975.cidr_blocks.0\": \"0.0.0.0/0\",\r\n            \"ingress.2214680975.from_port\": \"80\",\r\n            \"ingress.2214680975.protocol\": \"tcp\",\r\n            \"ingress.2214680975.security_groups.#\": \"0\",\r\n            \"ingress.2214680975.self\": \"false\",\r\n            \"ingress.2214680975.to_port\": \"80\",\r\n            \"ingress.2617001939.cidr_blocks.#\": \"1\",\r\n            \"ingress.2617001939.cidr_blocks.0\": \"0.0.0.0/0\",\r\n            \"ingress.2617001939.from_port\": \"443\",\r\n            \"ingress.2617001939.protocol\": \"tcp\",\r\n            \"ingress.2617001939.security_groups.#\": \"0\",\r\n            \"ingress.2617001939.self\": \"false\",\r\n            \"ingress.2617001939.to_port\": \"443\",\r\n            \"name\": \"application\",\r\n            \"owner_id\": \"xxxxxxxxxxxx\"\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nOutput from 0.4.2:\r\n```json\r\n\"aws_security_group.application\": {\r\n    \"type\": \"aws_security_group\",\r\n    \"primary\": {\r\n        \"id\": \"sg-7ffc4816\",\r\n        \"attributes\": {\r\n            \"description\": \"Instances running application servers\",\r\n            \"egress.#\": \"0\",\r\n            \"id\": \"sg-7ffc4816\",\r\n            \"name\": \"application\",\r\n            \"owner_id\": \"xxxxxxxxxxxx\"\r\n        }\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/93699796","html_url":"https://github.com/hashicorp/terraform/issues/1535#issuecomment-93699796","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/1535","id":93699796,"user":{"login":"vitalis","id":36814,"avatar_url":"https://avatars.githubusercontent.com/u/36814?v=3","gravatar_id":"","url":"https://api.github.com/users/vitalis","html_url":"https://github.com/vitalis","followers_url":"https://api.github.com/users/vitalis/followers","following_url":"https://api.github.com/users/vitalis/following{/other_user}","gists_url":"https://api.github.com/users/vitalis/gists{/gist_id}","starred_url":"https://api.github.com/users/vitalis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitalis/subscriptions","organizations_url":"https://api.github.com/users/vitalis/orgs","repos_url":"https://api.github.com/users/vitalis/repos","events_url":"https://api.github.com/users/vitalis/events{/privacy}","received_events_url":"https://api.github.com/users/vitalis/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T10:13:12Z","updated_at":"2015-04-16T10:13:12Z","body":"I also see another issue in 0.4.1 ingress configuration:\r\nHere is the list of existing ingress on security group:\r\n![ec2_management_console](https://cloud.githubusercontent.com/assets/36814/7178781/210586bc-e43a-11e4-9fa8-ad5d4e78406f.png)\r\n\r\nand here is the result I have after `terrafrom refresh`:\r\n\r\n```json\r\n\"aws_security_group.mongo\": {\r\n    \"type\": \"aws_security_group\",\r\n    \"primary\": {\r\n        \"id\": \"sg-79191d10\",\r\n        \"attributes\": {\r\n            \"description\": \"MongoDB Servers\",\r\n            \"egress.#\": \"0\",\r\n            \"id\": \"sg-79191d10\",\r\n            \"name\": \"mongo\",\r\n            \"owner_id\": \"xxxxxxxxxxxxxxxxx\"\r\n        }\r\n    }\r\n}\r\n```"}}