{"action":"closed","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/2465","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/2465/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/2465/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/2465/events","html_url":"https://github.com/hashicorp/terraform/issues/2465","id":90731649,"number":2465,"title":"`terraform refresh`, AWS, state bugs","user":{"login":"nathanielks","id":314009,"avatar_url":"https://avatars.githubusercontent.com/u/314009?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanielks","html_url":"https://github.com/nathanielks","followers_url":"https://api.github.com/users/nathanielks/followers","following_url":"https://api.github.com/users/nathanielks/following{/other_user}","gists_url":"https://api.github.com/users/nathanielks/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanielks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanielks/subscriptions","organizations_url":"https://api.github.com/users/nathanielks/orgs","repos_url":"https://api.github.com/users/nathanielks/repos","events_url":"https://api.github.com/users/nathanielks/events{/privacy}","received_events_url":"https://api.github.com/users/nathanielks/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/core","name":"core","color":"cccccc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-24T16:53:13Z","updated_at":"2015-06-25T16:29:29Z","closed_at":"2015-06-25T16:29:29Z","body":"Hello all!\r\n\r\nOverall structure: VPC, ELB, 2 app servers in private subnet, RDS instance with all the subnets, routing tables, and other trimmings. I have a few outputs recorded for simple reference:\r\n\r\n```\r\noutput \"app_1.0.ip\" {\r\n  value = \"${aws_instance.app_1.0.private_ip}\"\r\n}\r\n\r\noutput \"app_2.0.ip\" {\r\n  value = \"${aws_instance.app_2.0.private_ip}\"\r\n}\r\n\r\noutput \"nat.ip\" {\r\n  value = \"${aws_instance.nat.public_ip}\"\r\n}\r\n\r\noutput \"nat.hostname\" {\r\n  value = \"${aws_instance.nat.public_dns}\"\r\n}\r\n\r\noutput \"elb.hostname\" {\r\n  value = \"${aws_elb.app.dns_name}\"\r\n}\r\n\r\noutput \"rbs.hostname\" {\r\n  value = \"${aws_db_instance.default.address}\"\r\n}\r\n```\r\n\r\nI left work yesterday with state being a-okay. I returned to work today, ran `terraform show` and noticed that `elb.hostname` and `rds.hostname` were both missing, so I ran `terraform refresh` and now it's inverted: only `elb.hostname` and `rds.hostname` are being output. I inspected `terraform.tfstate` and noticed all my `aws_instance`s and associated subnets are gone, even though they still exist in AWS. The ELB, RDS Instance, and routing tables (even for the app subnets) are still there though.\r\n\r\nAny other data I can provide to assist in debuging this?"}}