# Amazon Elastics Compute Cloud

✅ Amazon Elastics Compute Cloud(Amazon EC2): provide secure resizable compute capacity in the cloud as amazon EC2 instances.  
  
✅ When you're working aws those server are virtual and the servers you use to gain access to virtual servers is called EC2.  
  
✅ Amazon EC2 instance types:  
  
✅ Memory optimized instance: Ideal for high performance database.  
  
✅ Storage optimized instance: suitable for data warehousing applications.  
  
✅ General purpose instance: Balance compute , memory and networking resources.  
  
✅ Compute optimized instance: Offer high performance processors.  
  
✅ Accelerated computing resources: Use hardware accelerators or coprocessor to perform same function more efficiently than is possible in software running on cpu.  
  
✅ Amazon EC2 pricing:  
  
✅ On - Demand  
✅ Amazon EC2 savings plans  
✅ Reserved instance  
✅ spot instance  
✅ Dedicated hosts  
  
✅ Scaling Amazon EC2:  
  
✅ Amazon EC2 Auto Scaling: Amazon EC2 auto scaling enables you to automatically add or remove Amazon EC2 instances in response to changing application demands.  
  
✅ By Amazon Ec2 auto scaling you can use two approaches.  
  
✅ Dynamic scaling responds to changing demands.  
  
✅ Predictive scaling automatically schedules the right number of amazon ec2 instance based on predicted demands.
