{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/2740","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/2740/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/2740/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/2740/events","html_url":"https://github.com/hashicorp/terraform/issues/2740","id":95258195,"number":2740,"title":"Re-attaching EBS volumes to new EC2 instances...","user":{"login":"bdesilva","id":8118187,"avatar_url":"https://avatars.githubusercontent.com/u/8118187?v=3","gravatar_id":"","url":"https://api.github.com/users/bdesilva","html_url":"https://github.com/bdesilva","followers_url":"https://api.github.com/users/bdesilva/followers","following_url":"https://api.github.com/users/bdesilva/following{/other_user}","gists_url":"https://api.github.com/users/bdesilva/gists{/gist_id}","starred_url":"https://api.github.com/users/bdesilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdesilva/subscriptions","organizations_url":"https://api.github.com/users/bdesilva/orgs","repos_url":"https://api.github.com/users/bdesilva/repos","events_url":"https://api.github.com/users/bdesilva/events{/privacy}","received_events_url":"https://api.github.com/users/bdesilva/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"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-15T18:19:47Z","updated_at":"2015-09-04T09:50:56Z","closed_at":null,"body":"Hey guys,\r\n\r\nI have a scenario where if I decide to bring down an EC2 instance in order to update my Elasticsearch version to a new version (this setup is for my Elasticsearch cluster on AWS), I would like to detach my EBS volume and re-attach it to the new EC2 instance with the updated Elasticsearch AMI.\r\n\r\nI believe I can already detach an EBS volume on EC2 destruction this way:\r\n\r\nebs_block_device {\r\n    device_name = \"/dev/sdh\"\r\n    volume_type = \"io1\"\r\n    iops = \"4000\"\r\n    volume_size = \"500\"\r\n    **delete_on_termination = \"false\"**\r\n  }\r\n}\r\n\r\nHowever, I'm still trying to find out how to re-attach this existing EBS volume to a new EC2 instance in Terraform prior to bringing that EC2 instance/node back into my cluster.\r\n\r\nCan you guys please help me with this?\r\n\r\nThanks,\r\nBen."},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/137692805","html_url":"https://github.com/hashicorp/terraform/issues/2740#issuecomment-137692805","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/2740","id":137692805,"user":{"login":"johannesboyne","id":623576,"avatar_url":"https://avatars.githubusercontent.com/u/623576?v=3","gravatar_id":"","url":"https://api.github.com/users/johannesboyne","html_url":"https://github.com/johannesboyne","followers_url":"https://api.github.com/users/johannesboyne/followers","following_url":"https://api.github.com/users/johannesboyne/following{/other_user}","gists_url":"https://api.github.com/users/johannesboyne/gists{/gist_id}","starred_url":"https://api.github.com/users/johannesboyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johannesboyne/subscriptions","organizations_url":"https://api.github.com/users/johannesboyne/orgs","repos_url":"https://api.github.com/users/johannesboyne/repos","events_url":"https://api.github.com/users/johannesboyne/events{/privacy}","received_events_url":"https://api.github.com/users/johannesboyne/received_events","type":"User","site_admin":false},"created_at":"2015-09-04T09:50:56Z","updated_at":"2015-09-04T09:50:56Z","body":"O.k., now I see your point. It's an interesting question."}}