{"id":3596,"date":"2017-12-23T10:56:11","date_gmt":"2017-12-23T10:56:11","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=3596"},"modified":"2021-11-18T06:16:30","modified_gmt":"2021-11-18T06:16:30","slug":"aws-storage-faq","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/aws-storage-faq\/","title":{"rendered":"AWS Storage FAQ"},"content":{"rendered":"<p><strong>What data is stored in ephemeral storage of an Amazon EC2 instance?<\/strong><\/p>\n<p>Anything that is not stored on an ebs volume that is mounted to the instance will be lost. For instance, if you mount your ebs volume at \/mystuff, then anything not in \/mystuff will be lost. If you don&#8217;t mount an ebs volume and save stuff on it, then I believe everything will be lost.<\/p>\n<p>You can create an AMI from your current machine state, which will contain everything in your ephemeral storage. Then, when you launch a new instance based on that AMI it will contain everything as it is now.<\/p>\n<p><strong>Meaning of &#8220;Warning: Please note that any data on the ephemeral storage of your instance will be lost when it is stopped&#8221;<\/strong><\/p>\n<p>There is a difference between &#8220;stop&#8221; and &#8220;terminate&#8221;. If you &#8220;stop&#8221; an instance that is backed by EBS then the information on the root volume will still be in the same state when you &#8220;start&#8221; the machine again.<\/p>\n<p>Basically, root volume (your entire virtual system disk) is ephemeral, but only if you choose to create AMI backed by Amazon EC2 instance store.<\/p>\n<p>If you choose to create AMI backed by EBS then your root volume is backed by EBS and everything you have on your root volume will be saved between reboots.<\/p>\n<p>If you are not sure what type of volume you have, look under EC2-&gt;Elastic Block Store-&gt;Volumes in your AWS console and if your AMI root volume is listed there then you are safe. Also, if you go to EC2-&gt;Instances and then look under column &#8220;Root Device&#8221; of your instance and if it says &#8220;ebs&#8221;, then you don&#8217;t have to worry about data on your root device.<\/p>\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_63646\"><figure class=\"wp-block-embed wp-block-embed-youtube is-type-video is-provider-youtube epyt-figure\"><div class=\"wp-block-embed__wrapper\"><iframe loading=\"lazy\"  id=\"_ytid_56089\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_63646\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><\/div><\/figure><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>What data is stored in ephemeral storage of an Amazon EC2 instance? Anything that is not stored on an ebs volume that is mounted to the instance&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5633],"tags":[162,1860,1864,1869,1863],"class_list":["post-3596","post","type-post","status-publish","format-standard","hentry","category-aws","tag-aws","tag-ebs","tag-ephemeral","tag-faq","tag-storage"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/3596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=3596"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/3596\/revisions"}],"predecessor-version":[{"id":25664,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/3596\/revisions\/25664"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=3596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=3596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=3596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}