Although EBS and EC2 are closely tied together, it is important to remember that they are both separate services. EBS is a storage service that provides network-based storage allocated in the same Availability Zone as the instance and is then mounted for usage. The amount of instance storage allocated to an instance varies by instance type, and not all types of EC2 instances contain an instance store volume.
EBS is different from an instance store in some key ways. The instance store volume is the storage that is physically attached to the EC2 instance. It is best used for temporary storage since the instance store does not persist through instance stops or instance failures. In contrast, data stored on an EBS volume will persist.
EBS volumes can be allocated at the time of instance creation or created after the instance has been placed into services’ additional storage. A key feature to remember about EBS volumes when allocating and restoring EBS volumes is that a volume must stay in the same Availability Zone as where it was created.
The following are three main types of EBS volumes, all of which differ in performance, optimal use cases, and cost:
Now that you have a grasp of the EBS service, consider some of the security considerations to be kept in mind when using the service:
Now that you have gone over the EBS service, the next thing to learn about is one of the most popular services—AWS Lambda.