How To Create And Launch Your First EC2 Instance
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.
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.
[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 .