Ephemeral storage is a form of temporary storage for your instances.

An ephemeral storage disk can be used, for example, for cache operations (TMPFS or SWAP). Using ephemeral storage helps reduce latency and improves the IOPS of the instance.

The content of an ephemeral storage disk is erased each time you stop and start the instance. However, it is not erased if you simply reboot the instance. For more persistent storage solutions, see About Volumes and About OSU.

The number and size of ephemeral storage disks available for an instance depend on the instance type. For more information about which instance types support ephemeral storage, see Instance Types.

To activate an ephemeral storage disk for an instance, you need to define the disk through block device mapping when you launch the instance. For more information, see Defining Block Device Mappings.

You cannot redefine block device mappings after launch, or attach and detach ephemeral storage disks between instances. You need to specify all the ephemeral storage disks you want to activate when you launch the instance.

After the launch, you need to initialize ephemeral volumes from the ephemeral storage disks to use them. For more information, see Initializing a Volume from an Instance.


To avoid conflicts with device names when restarting your instance, we highly recommend naming your ephemeral disks before naming your volumes. You can also start naming your ephemeral disks from /dev/xvdb, and your volumes up from /dev/xvdz.

 


Windows® is a registered trademark of Microsoft Corporation in the United States and/or other countries.

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.

See Legal Mentions.