Posts

Effect of instance state on storage

Image
  Different EC2 instance state has different effect on storage attached to EC2 like EBS, EIS etc. There are mainly four different state of EC2 instance Hibernate Terminate Stop Reboot Before going further, let's dive into different storage that we cover here: EIS (Elastic Instance Storage) - physically attached to EC2 instance, can't be detached and attached to other instance. it's like heart(EIS) of a man(EC2) 😂 EBS (Elastic Block Storage) - this is network attached , means storage is linked via network. it can be detached and attached to other instance. it's like clothes (EBS) of a man(EC2) 😅 Root EBS - this is same EBS but store only system data necessary for booting up instance.   Let's see one by one and there effect on storage. Hibernate Definition : Saves the in-memory state (RAM) to the root EBS volume, then stops the instance. Effect on Data Stored in Instance : Data in memory (RAM) is saved to EBS. Data on attached EBS volumes is preserved. Data o...

EC2 Compute

Image
   EC2 Overview EC2 (Elastic Compute Cloud) is a primary compute service in AWS. Allows deployment of virtual servers within AWS. Essential for most AWS solutions. Key Components of EC2 Amazon Machine Images (AMIs) Instance Types Instance Purchasing Options Tenancy User Data Storage Options Security 1. Amazon Machine Images (AMIs) Definition : Templates of pre-configured EC2 instances. Purpose : Simplifies launching new instances with specific configurations. Types of AMIs : AWS-managed AMIs Custom AMIs (created by users) AMIs from AWS Marketplace Community AMIs (publicly shared) 2. Instance Types Definition : Defines the size and capability of an instance based on: vCPUs (virtual CPUs) Architecture (e.g., i386, x86, ARM) Memory (RAM) Storage capacity and type (e.g., magnetic, SSD) Network performance Instance Families General Purpose : Balanced mix of CPU, memory, storage. Compute Optimized : High performance processors. Memory Optimized : Large-scale in-memory applications. ...