Provision AWS EC2 Instance
Table of Contents
Introduction
This blog shows how to create an EC2 instance on AWS step by step.
Steps to Provision an EC2 Instance
Launch Instance
-
Go to Compute and click EC2
-
Click Launch Instance at EC2
-
Choose Amazon Linux 2 AMI
-
Choose Free Tier, t2.micro
Configure Instance Details
-
Launch with default VPC
-
Enable termination protection
-
Tenancy: use shared for now
-
Enable hibernation as an additional stop behavior
Add Storage
At Add Storage, use the default root volume.
-
Check "Delete on Termination" — when deleting the EC2 instance, this root device will also be deleted
-
Make it encrypted during the creation of the EC2 instance
Add Tags
- Add tags so it is easy to differentiate instances
Configure Security Group
-
Assume you just need SSH
-
So SSH, TCP, Port 22, 0.0.0.0/0
Review and Launch
-
Click Review and Launch
-
Create a new private key pair
-
Click Launch Instance — you should be able to see the instance launching
Conclusion
By following the steps above, you can provision an AWS EC2 instance with the Free Tier t2.micro option. Make sure to configure security groups, enable termination protection, and create a key pair for SSH access. You can further customize the instance settings based on your specific requirements.