Create a free EC2 Linux instance in AWS For 12 Months

Create a free EC2 Linux instance in AWS For 12 Months




To create a key pair:
  • Follow the steps in Setting up with Amazon EC2 in the Amazon EC2 User Guide for Linux Instances to create a key pair. If you already have a key pair, you don't need to create a new one. You can use your existing key pair for this exercise.


check my youtube video "Create a Free EC2 Linux Instance In AWS" for your reference.



To launch the EC2 instance and mount an EFS file system:

1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2


2. Choose Launch Instance.










 

3. In Step 1: Choose Any Linux Image (AMI), find an ubuntu AMI at the top of the list and choose Select.


4. In Step 2: Choose an Instance Type, choose Next: Configure Instance Details.










 

5. In Step 3: Configure Instance Details, provide the following information:

  • Leave Number of instances at one.

  • Leave Purchasing option at the default setting.

  • For Network, choose the entry for the same VPC that you noted when you created your EFS file system in Step 1: Create your Amazon EFS file system.

  • For Subnet, choose a default subnet in any Availability Zone.

  • For File systems, make sure that the EFS file system that you created in Step 1: Create your Amazon EFS file system is selected. The path shown next to the file system ID is the mount point that the EC2 instance will use, which you can change.

  • The User data automatically includes the commands for mounting your Amazon EFS file system.












  • Choose Next: Add Storage.

6. In Step 4: Add Storage:









  • Choose Next: Add Tags.

 

7. In Step 5: Add Tags.











  • Name your instance and choose Next: Configure Security Group.


8. In Step 6: Configure Security Group, set Assign a security group to Select an existing security group. Choose the default security group to make sure that it can access your EFS file system.

You can't access your EC2 instance by Secure Shell (SSH) using this security group. SSH access isn't required for this exercise. To add access by SSH later, you can edit the default security and add a rule to allow SSH. Or you can create a new security group that allows SSH. You can use the following settings to add SSH access:

  • Type: SSH

  • Protocol: TCP

  • Port Range: 22

  • Source: Anywhere 0.0.0.0/0

















  • Choose Review and Launch.



 
9. In Step 7: Launch:

    1. Choose Launch.

    2. 

Select the check box for the key pair that you created, and then choose Launch Instances.


















10. Select created instance and choose "connect" and follow steps.

















 

11. Finally, You can take SSH of AWS instance.





















Lastly, I hope it's helpful. So, let me know your suggestions and feedback using the comment section.





Comments

Contact Form

Name

Email *

Message *

Popular posts from this blog

Red Hat Certified Systems Administrator – RHCSA (EX200) Ex@m practice 2022

Step-by-Step Install and Configure OpenLDAP on RHEL7/CentOS 7 Linux

Creating RAID-0 (Stripe) in Linux