What Is Ec2 ? Key feature ? Real-time-example? Benefit? and Steps to create an EC2?
Day 01 of #25Days25AWSServices
So we start from the Amazon EC2 (Amazon Elastic Compute Cloud)Amazon Elastic Compute Cloud (EC2) Overview:
๐ ๐๐ก๐๐ญ ๐ข๐ฌ ๐ข๐ญ?
EC2 is a web service provided by Amazon Web Services (AWS) that offers ๐ซ๐๐ฌ๐ข๐ณ๐๐๐ฅ๐ compute capacity in the cloud.
๐ป ๐๐๐ฒ ๐ ๐๐๐ญ๐ฎ๐ซ๐๐ฌ:
๐๐๐๐ฅ๐๐๐ข๐ฅ๐ข๐ญ๐ฒ: Scale compute resources up or down based on demand.
๐ ๐ฅ๐๐ฑ๐ข๐๐ข๐ฅ๐ข๐ญ๐ฒ: Choose from various instance types, operating systems, and software packages.
๐๐ฅ๐๐ฌ๐ญ๐ข๐๐ข๐ญ๐ฒ: Automatically adjust capacity to handle fluctuating workloads.
๐๐๐๐ฎ๐ซ๐ข๐ญ๐ฒ: Utilize AWS security features like VPCs, security groups, and IAM roles.
๐ง ๐๐๐๐ฅ-๐ญ๐ข๐ฆ๐ ๐๐ฑ๐๐ฆ๐ฉ๐ฅ๐:
๐๐๐๐ง๐๐ซ๐ข๐จ: A popular e-commerce website experiences a sudden surge in traffic due to a flash sale.
๐๐จ๐ฅ๐ฎ๐ญ๐ข๐จ๐ง: The DevOps team uses EC2 to quickly spin up additional instances to handle the increased load.
๐๐๐ฌ๐ฎ๐ฅ๐ญ: The website maintains performance and availability during peak traffic without downtime or performance issues.
๐ ๐๐ง๐ญ๐๐ ๐ซ๐๐ญ๐ข๐จ๐ง:
Seamlessly integrates with other AWS services like Elastic Load Balancing (ELB), Auto Scaling, and Amazon RDS for comprehensive infrastructure management.
๐ ๐๐๐ง๐๐๐ข๐ญ๐ฌ:
๐๐จ๐ฌ๐ญ-๐๐๐๐ข๐๐ข๐๐ง๐๐ฒ: Pay only for the resources you use with per-hour billing.
๐๐๐ฅ๐ข๐๐๐ข๐ฅ๐ข๐ญ๐ฒ: EC2 instances are housed in multiple availability zones for high availability and fault tolerance.
๐๐๐ฌ๐ ๐จ๐ ๐๐ฌ๐: Simple API and management console make provisioning and managing instances straightforward.
๐ก ๐๐จ๐ง๐๐ฅ๐ฎ๐ฌ๐ข๐จ๐ง:
Amazon EC2 empowers DevOps teams to build robust, scalable, and flexible cloud infrastructures to support a wide range of applications and workloads.
To create an EC2 instance on AWS, you can follow these steps:
Sign in to AWS Management Console: Go to the AWS Management Console and sign in to your AWS account.
After Sign In you will land on this page
Navigate to EC2 Dashboard: Once logged in, navigate to the EC2 dashboard by selecting "EC2" from the list of services.
Launch Instance: Click on the "Launch Instance" button to begin the process of creating a new EC2 instance.
Provide the Name to your VM ex- Param_DevOps
Choose an Amazon Machine Image (AMI): Select an AMI from the provided list. You can choose from various operating systems and pre-configured software options.
I'm going with Amazon linux
Choose an Instance Type: Select the instance type based on your requirements for CPU, memory, storage, and networking capacity
I'm preferring t2.micro which is free
Select Key Pair: Choose an existing key pair or create a new one to securely connect to your instance using SSH or RDP.
Configure Security Group: Define security groups to control inbound and outbound traffic to your instance by specifying rules.
Add Storage: Specify the storage options for your instance, including the size and type of the root volume. till 30GiB its free
Then Launch Instance: Finally, click on the "Launch Instances" button to create your EC2 instance.
Access Your Instance: Once the instance is launched, you can access it using SSH (for Linux instances) or Remote Desktop Protocol (RDP) (for Windows instances) using the appropriate credentials and security configurations.
Now go to instances in left side panel and there you will the our launched instance is up and running
Now select the launched instance and we'll get a connect option at the top
Now click on connect
Now finally we can access our launched ec2
so now we can use it
Thank you for more please connect and follow