Monday, 3 June 2024

All About EC2

Amazon EC2 (Elastic Compute Cloud) is a web service provided by Amazon Web Services (AWS) that allows users to rent virtual computers on which to run their own applications. Here's a brief overview:


1. Virtual Servers (Instances): EC2 provides resizable compute capacity in the form of virtual servers known as instances. Users can choose from various instance types with different CPU, memory, storage, and networking capacities to meet specific application needs.


2. Elasticity: EC2 allows you to scale capacity up or down easily to handle changes in requirements or traffic. You can increase or decrease the number of instances, or change instance types, as needed.


3. Pay-as-you-go Pricing: EC2 follows a pay-as-you-go pricing model, where you pay only for the compute capacity that you actually use. Pricing can vary based on the instance type, region, and other factors.


4. Security: EC2 provides various security features, including secure login information for instances, encryption for data at rest and in transit, and security groups to control inbound and outbound traffic.


5. Integration: EC2 integrates with other AWS services such as Amazon S3, Amazon RDS, and Amazon VPC, enabling users to build complex architectures and applications.


6. Use Cases: EC2 is used for a wide range of applications, including web hosting, application hosting, batch processing, big data analytics, and more. It provides the flexibility and scalability needed for both small startups and large enterprises.


Overall, Amazon EC2 is a core component of AWS and is widely used for its flexibility, scalability, and ease of use in deploying and managing virtual servers in the cloud.


Certainly! Let's delve a bit deeper into Amazon EC2:


7. Instance Types: EC2 offers a broad selection of instance types optimized to fit different use cases. These include general-purpose instances, compute-optimized instances, memory-optimized instances, storage-optimized instances, and more. Each type is designed to deliver specific combinations of CPU, memory, storage, and networking capacity.


8. AMI (Amazon Machine Image): When launching an EC2 instance, you can choose from a wide range of pre-configured templates called Amazon Machine Images (AMIs). AMIs include an operating system and often additional software needed for your application. You can also create your own custom AMIs tailored to your specific requirements.


9. EBS (Elastic Block Store): EC2 instances can use Amazon Elastic Block Store (EBS) volumes to provide persistent block-level storage that can be attached to an instance. EBS volumes are highly available and reliable, offering different types such as SSD-backed and HDD-backed volumes optimized for various workloads.


10. Auto Scaling: EC2 Auto Scaling allows you to automatically adjust the number of EC2 instances in a fleet based on demand. You can define scaling policies to ensure that your application always has the right amount of compute capacity to handle current traffic levels.


11. Placement Groups: EC2 offers placement groups, which allow you to influence how instances are placed on the underlying hardware to meet specific requirements for latency, throughput, or proximity to other instances.


12. Networking: Each EC2 instance is launched within a Virtual Private Cloud (VPC), providing you with control over network configuration, IP addressing, routing, and security. You can also use features like Elastic IP addresses and VPC Peering to extend your network architecture.


13. Monitoring and Management: EC2 instances can be monitored using Amazon CloudWatch, which provides metrics such as CPU utilization, network traffic, and disk I/O. AWS Systems Manager offers centralized management of EC2 instances, enabling tasks like configuration management, patching, and compliance auditing.


14. Global Infrastructure: AWS operates EC2 in multiple geographic regions around the world, allowing you to deploy instances in locations that are close to your users for lower latency and compliance with data residency requirements.


Amazon EC2 remains a cornerstone service in AWS, empowering businesses to deploy applications quickly and scale seamlessly while benefiting from the reliability, security, and flexibility of cloud computing.


Note : Cost factory may be vary between regions and the instance type what you have selected.

Better for practice purpose use t2.micro instance type because it's free upto 750hrs for which are all using aws free tier account 

Elastic IP is free but if you can't use it, then it also cost able, if you don't want EIP then just deregister it from the console.


That's it for the day! Thanks for reading, Yours VK😊

No comments:

Post a Comment

Introduction to k8s

 Hello friends, Good Day! Hope you guys are doing well, I am writing here some basic terminology n introduction to kube8.. please do read n ...