How To Create And LaunchYour First EC2 Instance

Greetings, fellow tech enthusiasts! I'm Shubham Rasal, but you might know me better as the SREngineered.
Over the last three years, I have immersed myself deeply in the intricate universe of DevOps and SRE. Along the way, I've brought life to various technologies and projects, utilizing everything from bash script automation to Kubernetes production clusters. My credentials include the Certified Kubernetes Administrator (CKA) and Ansible Certified Engineer titles, standing testament to my unwavering commitment to and understanding of our craft.
This blog is designed for kindred spirits who are passionate about engineering excellence. My goal is to share my experience, knowledge, and wisdom through tutorials, case studies, and Golang code examples that offer valuable solutions for navigating the continually evolving world of DevOps and SRE.
No matter where your interests lie within the vast landscape of DevOps/SRE, Automation, and Golang, this blog aims to offer valuable insights to help you elevate your skills and understanding. So, buckle in and join me on this journey into the thrilling world of cutting-edge engineering solutions!
When I'm not busy conjuring up elegant engineering solutions, I enjoy getting lost in the immersive worlds of movies and books. Feel free to connect with me on LinkedIn, Twitter, or through email.
What is EC2? EC2 stands for Elastic Cloud Compute. Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the Amazon Web Services (AWS) cloud.
What is Instances ? Amazon EC2 provides different instance types to enable you to choose the CPU, memory, storage, and networking capacity that you need to run your applications. For simple , Instance is OS(operating system)+ hardware which you select as per you need.
Before we launch and connect we need a to create key pair. If you have already key pair then you need not to create a new one.
TO CREATE KEY PAIR
Step 1: Open your EC2 Console .https://console.aws.amazon.com/ec2/.
Step2:Click on key pair.
Click on Key pairs.
Step 3: Click on the create key.

Step 4: Click on Name and enter key name. Select pem format here. Click Create key pair.

TO LAUNCH INSTANCE
Step 0:Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/. choose “Launch Instance”.

Step 1:Step 1: Choose an Amazon Machine Image (AMI), find an Amazon Linux AMI at the top of the list and choose Select.

Step 2: Choose an Instance Type, choose Next: Configure Instance Details.

Step 3: Configure Instance Details.

Step 4:Add Database.

Step 5:Choose Next: Add Tags.

Step 6: Next Configure Security Group.
- Select “Create a new security group”
- Select on “Review and Launch”

Step 7:Review and Launch.
- Select Review and Launch
- Click Launch

Step 7: Click on View Instance.
1.Select and click on Connect.

Step 8:Connect to your Instance [Way 1 using browser]
- Select EC2 Instance Connect
- Keep User name default(ec2-user)
- Click on Connect.


Output 1
[Way 1 using SSH]
- Use below Command to connect with Instance.
- ssh -l username pubic-Ip -i “mykey.pem”
- Eg: ssh -l ec2-user ip -i mykey.pem
- [keep mykey.pem in current working directory ]
I hope you like and learn how to create and launch first instance(os).
Please Like,Share, Comment .




