Vanishree shows you how to
launch a Linux EC2 instance
that will be covered by the Free Tier

vanishree_create_linux_instance

I would like to use Amazon Elastic Compute Cloud (Amazon EC2) to create a Linux instance that I can use to increase my understanding of Linux concepts.

Amazon Web Services provides an AWS Free Tier (http://aws.amazon.com/free/) option for evaluation purposes. The AWS Free Tier provides access to many products and services, including Amazon EC2, at no cost, within certain limitations. After completing the steps to Create a Free Account, you can quickly create a "Free Tier Eligible" instance of Linux with a public IP address that you can use to increase your knowledge of Linux concepts.

  1. If applicable, follow the steps in Create a Free Account.
  2. In the AWS Management Console, open the Amazon EC2 Dashboard by clicking the EC2 icon in the upper-left of the console.
  3. In the region selector in the navigation bar, select the region that is geographically closest to you. All resources required to run your instance must be created in the same region.
  4. Follow the steps in Create a Key Pair. If you plan to connect to your Linux instance from Windows, be sure to follow the instructions in the section titled (Optional) To prepare to connect to a Linux instance from Windows using PuTTy. Save the resulting .ppk file to the same folder as the .pem file that you downloaded.
  5. In the console navigation pane, click EC2 Dashboard. In the Create Instance section of the console, click Launch Instance.
  6. On the Step 1 page, find the first Ubuntu Server in the list of Amazon Machine Images (AMIs) and click the corresponding Select button.
  7. On the Step 2: Choose an Instance Type page, accept the default General Purpose t2.micro instance type, and then click Next: Configure Instance Details.
  8. On the Step 3: Configure Instance Details page, most of the default selections should be fine. Change or confirm the following:
    • Number of Instances – 1 (default).
    • Purchasing option – Request Spot Instances unchecked (default).
    • Network – A network other than Launch into EC2-Classic.
    • Subnet – Select a subnet in the same region that you created a key pair.
    • Auto-assign Public IP – Select Enable.
    • IAM role – None (default).
    • Shutdown behavior – Stop (default).
    • Enable termination protection – Check Protect against accidental termination.
    • Monitoring – Enable CloudWatch detailed monitoring unchecked (default).
    • Tenancy – Shared tenancy (muti-tenant hardware) (default).
    • Accept the default values listed in the Network interfaces section.
  9. At the bottom-right of the page, click Next: Add Storage and apply the following options in Step 4: Add Storage:
    • Size (GiB) – 20
    • Volume Type – General Purpose (SSD)
    • Delete on Termination – Unchecked
  10. At the bottom-right of the page, click Next: Tag Instance and apply the following options in Step 5: Tag Instance:
    • Enter a Name for Key and corresponding text for Value; for example, set Key = Name and Value = Ubuntu test.
  11. At the bottom-right of the page, click Next: Configure Security Group and apply the following options in Step 6: Configure Security Group:
    • Assign a security group – Enable the option Create a new security group.
    • Security group name – Enter a descriptive value for the security group; for example, TrustySG.
    • Description – Either leave the default value or enter a description, such as Security Group for Ubuntu Trusty.
  12. Create the following security rules:
    • SSH (should be listed by default):
    a) Type – SSH
    b) Protocol – TCP
    c) Port Range – 22
    d) Source – My IP
    • RDP (click Add Rule and select RDP from the list):
    a) Type – RDP
    b) Protocol – TCP
    c) Port Range – 3389
    d) Source – My IP
  13. At the bottom-right of the page, click Review and Launch. At the bottom-right of Step 7: Review Instance Launch, click Launch.
  14. From the Select an existing key pair or create a new key pair dialog box, select the key pair you created in step 4 from the Select a key pair dropdown, check the acknowledgement box, and click Launch Instances.
  15. On the Launch Status page, in the section Your instance is now launching, click the instance ID (i-xxxxxxxx).
  16. As soon as Status Checks complete successfully and Instance State status is running, connect to your instance using one of the methods described in Connect to Your Linux Instance.
  17. To avoid unnecessary charges, stop your instance when you are not using it. If you qualify for Free Tier, make sure you understand the pricing guidelines. When you are completely finished using your instance, complete the steps described in Clean Up Your Instance and Volume to help ensure that you do not incur unnecessary charges.

Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center.

Published: 2014-12-18