How to Launch my First EC2 Instance
Part1 (you will need putty software)
Now Lets Learn, the very first step once you have got your AWS account activate (ie) to start your own EC2 instance even before creating IAM users.
1) Go to Services and click EC2 and click on Launch Instance
2) Choose your AMI (Amazon Machine Image) which comes with default OS and make your choice. For this example we will keep very simple and select Linux 2 AMI. Make sure you always have the Free tier Only checked.
3) You will see General Purpose t2.micro selected by default, if not choose the same and click on ‘Next Configure Instance Details’
4) Leave all the default settings, Network, Subnet , IAM role all plays a very important configuration later. But for now leave them to default value and click on ‘Add Storage’.
5) Leave the storage to Default Volume type. Volume types are an important part of Storage services (Check storage services like EBS for more), for now we will leave it to default and click on ‘Add Tags’.
6) Create new tags to identify the usage and list it under resources as below. This is for easy tracking / identification.Next ‘Configure Security Group’
7) Configure security group is a very important step.For now we can leave this to default. This is where all restrictions , permissions to other entities configured. Note by default Type= ‘SSH’ is enabled leave it as such which will allows to login to server by putty/shell and source = ‘0.0.0.0’ meaning no restriction on SSH logins. Anyone can SSH who have the key(which will be generated below) Click Review and Launch.
8) Review Instance Launch page will provide the summary of above setups.
9) Create a new key pair and give a name to it. This is used for logging into the instance. We can SSH the same using Putty.
10) Download the key pair and save it. Keep it very safe, if you lose it, you wont be able to SSH into your server.
11) Click on Launch Instance.
Congratulations, you have now Successfully launched your first EC2 instance.
Next we will log-in to our instance. Part-2.