Creation of AWS Account
If you want to create an AWS account, you can refer the below steps:-
Create a Gmail Account (if you don't already have one).
Sign Up for AWS:
Go to AWS.
Click on Sign Up or Create a Free Account.
Enter your Gmail address and follow the prompts to complete the registration process.
Provide your personal details and credit card information. AWS will make a small charge (e.g., Rs. 2) to verify your payment method. This charge will be refunded within a few days.
Select the Basic Support - Free Plan during the sign-up process.
- Sign In to AWS Console:
Go to the AWS Management Console.
Click on Sign In to the Console.
Enter your AWS account credentials (email and password).
- Access EC2 Service:
In the AWS Management Console, navigate to Services and select EC2 under the Compute section.
- Launch an EC2 Instance:
Click on Launch Instance.
Choose an Amazon Machine Image (AMI). For a free tier option, select Ubuntu or another eligible AMI.
Choose an instance type. The t2. micro instance is eligible for the free tier.
Configure instance details, add storage, and add tags as needed.
Configure the security group (firewall rules). For initial testing, you might allow SSH access from your IP address.
Create a new key pair (or use an existing one). Download the key pair (.pem file) and save it securely on your local machine.
- Configure Storage
Make sure you should need to create a server with minimum 8 GB Storage. If you add more than 30 GB Storage, then AWS will charge you if you create any additional machine after that.
Click Launch to start your instance.
7. Connect to Your EC2 Instance:
Once the instance is launched, go to the Instances section.
Select your instance by ticking the checkbox next to it.
Click on the Connect button.
You'll see options for connecting to your instance. You can use EC2 Instance Connect (browser-based SSH client), or connect via SSH using your terminal or command line interface.
- For EC2 Instance Connect:
Make sure your instance is using the default ubuntu user.
Click on Connect. The browser-based SSH client should connect you to the instance.
For SSH Connection:
Make sure you have the downloaded key pair file (.pem) and use the following command in your terminal:
ssh -i /path/to/your-key.pem ubuntu@<public-ip-of-your-instance>
Ensure the key file permissions are set correctly: chmod 400 /path/to/your-key.pem.
Make sure to replace /path/to/your-key.pem with the actual path to your key file and <public-ip-of-your-instance> with the public IP address of your EC2 instance.
By following these steps, you should be able to set up and connect to your EC2 instance successfully.