{"id":692,"date":"2017-02-16T00:17:48","date_gmt":"2017-02-15T17:17:48","guid":{"rendered":"http:\/\/blog.trichev.com\/?p=692"},"modified":"2017-08-10T09:09:14","modified_gmt":"2017-08-10T02:09:14","slug":"aws-how-to-modify-the-ebs-delete-on-termination-flag","status":"publish","type":"post","link":"https:\/\/trichev.com\/blog\/2017\/02\/16\/aws-how-to-modify-the-ebs-delete-on-termination-flag\/","title":{"rendered":"AWS. How to modify the EBS &#8220;Delete on Termination&#8221; flag"},"content":{"rendered":"<p>The only way to do this is by using the <a href=\"http:\/\/aws.amazon.com\/cli\/\">AWS CLI<\/a>, at the current time there\u2019s no way to do this using the web console.<\/p>\n<p>aws ec2 modify-instance-attribute &#8211;instance-id i-123e4567fc8901234 &#8211;block-device-mappings &#8220;[{\\&#8221;DeviceName\\&#8221;: \\&#8221;\/dev\/xvda\\&#8221;,\\&#8221;Ebs\\&#8221;:{\\&#8221;DeleteOnTermination\\&#8221;:false}}]&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The only way to do this is by using the AWS CLI, at the current time there\u2019s no way to do this using the web console. aws ec2 modify-instance-attribute &#8211;instance-id i-123e4567fc8901234 &#8211;block-device-mappings &#8220;[{\\&#8221;DeviceName\\&#8221;: \\&#8221;\/dev\/xvda\\&#8221;,\\&#8221;Ebs\\&#8221;:{\\&#8221;DeleteOnTermination\\&#8221;:false}}]&#8221;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[231],"tags":[218,219,32,28,14,11],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/692"}],"collection":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/comments?post=692"}],"version-history":[{"count":1,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/692\/revisions"}],"predecessor-version":[{"id":693,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/692\/revisions\/693"}],"wp:attachment":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/media?parent=692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/categories?post=692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/tags?post=692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}