How to launch and access the first EC2 instance Ubuntu on AWS.
The first step we need to create an account on AWS. So from the below screen, you can create an account on AWS. AWS provides us 1-year free tier subscription for some specific services. After creating an account, please follow the below steps.
Click here to create an account on AWS
1. Click on services and after that click on EC2.
2. Now you will get this kind of page. Click on any link from below-mentioned image.
3. Now click on any link from below-mentioned Image.
4. After that you will get redirected to this page. Please search the AMI name that you want to launch, i.e. Ubuntu-16/18, and click on select.
5. Now you will get a screen like below. Please select the desired capacity of instance that you want to launch. We are using the free tier so it’s recommended to use the Free Tier service. After selecting desired capacity click on Next Configure Instance Details Button.
6. Now please enter your desired VPC, Subnet etc. We will learn about VPC, Subnet, etc in our next tutorials. So far now we are going with basic selections. Now click on Next: Add Storage.
7. Now put your desired capacity of disk space. By default, we are getting 8 GB. In Free Tier, we can use max 30 GB free. Now click on Next: Add Tags.
8. Put your tags. Tags are useful for easily understanding resources in complex infrastructure and clicking on Next: Configure Security Group
9. Now create a security group to access your EC2 instance and block other ports from outside access. Click on the below-mentioned links and put information as per your requirement. Please open 22 Port in your security group. Please select Anywhere in the Source field to access your EC2 from outside/publicly. Click on Review and Launch.
10. In the Review section you can see your previously chosen requirements. We can modify as well if something needs to be modified. After that click on Launch.
11. Now create your access key to access the EC2 instance. By default, AWS EC2 machines are accessible only via keys. So please put the key pair name and click on Download Key Pair and save at a safe place. After that click on the Launch Instances button.
12. Now click on below mentioned link and this will redirect us to Instances page.
13. Now you can see your Instance in running mode. Please wait 4-5 minutes to access it so it will be UP and ready to access from outside. Please copy your Public IP Address to access the machine.
Learn How To Convert .pem key to .ppk Format
14. Now open putty software on your system and put your instance’s IP and port. After that click on the + icon ahead SSH Button and then Auth.
15. Now click on the Browse button and select your private key to access your Instance.
16. After that click on the open button and put username Ubuntu and hit enter. (Ubuntu is the default username for Ubuntu AMIs on AWS). After that, you will log in as a Ubuntu user. Now type sudo bash to become a root/super user in Ubuntu so you can modify things as per your requirements.
Also, read Migrate AWS S3 bucket to another AWS account