Skip to main content

Launch Amazon EC2 Instance Using AMI

Launch Amazon EC2 Instance Using AMI

Launch an Instance
You are now ready to launch an Amazon EC2 instance using the AMI that you selected in the previous step. Launching an instance involves the following tasks:
  • Configure the instance.
  • Create a key pair.
  • Create a security group.
  • Launch the instance.
Important The instance you’re about to launch will be live. You will incur the standard Amazon EC2 usage fees for the instance until you terminate it in the last task in this tutorial. If you complete this walkthrough in one session, the total charges will be minimal (typically less than a dollar). For more information about Amazon EC2 usage rates, go to the Amazon EC2 product page.
To launch an Amazon EC2 instance:
1. After you select an AMI, and click Launch Instance as you did in the previous step, the Create a New Instance page appears. This page provides two ways to launch an instance:
  • The classic wizard offers you more granular control and advanced settings for configuring the type of instance you want to launch.
  • The Quick Launch Wizard simplifies the process for you and automatically configures many selections for you so you can started quickly with an instance. This tutorial guides you through the Quick Launch Wizard.
On the Create a New Instance page, click Quick Launch Wizard.
2. In the Request Instances Wizard, on the Instance Details page, in the Availability Zone list, select us-east-1b.
Accept the other defaults on this page, and then click Continue. Accept the defaults on the next two pages, and then click Continue on each. When the wizard displays the Create Key Pair page, go to the next step.
3. Create a key pair:
  • Amazon EC2 instances created from a Public AMI use a public/ private key pair, rather than a password, for signing in. The public key is embedded in your instance. You use the private key to sign in securely without a password. After you create your own AMIs, you can choose other mechanisms to securely log in to your new instances.
If you’re new to Amazon EC2 and haven’t created any key pairs yet, when the wizard displays the Create Key Pair page, the Create a new Key Pair button is selected by default.
On the Create Key Pair page, in the Enter a name for your key pair box, type mykeypair. This will be the name of the private key file associated with the pair (with a .pem extension).
  • Click Create & Download your Key Pair.
  • You’re prompted to save the private key from the key pair to your system. Save the private key in a safe place on your system, and record the location where you saved it.
Important You need the key pair to be able to connect to your Amazon EC2 instance. If you lose the key pair, you will not be able to connect.
The wizard displays the Configure Firewall page, where you create a security group.
4. Create a security group:
A security group defines firewall rules for your instances. These rules specify which incoming network traffic should be delivered to your instance (e.g., accept web traffic on port 80). All other traffic is ignored. You can modify rules for a group at any time. The new rules are automatically enforced for all running instances. For more information about security groups, go to Using Security Groups in the Amazon Elastic Compute Cloud (Amazon EC2).
  • In the Group Name box, type webappsecuritygroup.
  • In the Description box, type a description for your security group.
  • In the Create a New Rule box inside Inbound Rules, click SSH and click Add Rule.
Caution The security group enables all IP addresses to access your instance over SSH. This is acceptable for the short exercise in this tutorial, but it’s not secure for production environments. In production, you’ll authorize only a specific IP address or range of addresses to access your instance.
  • Under Inbound Rules, in the Create a New Rule box, click HTTP, and then click Add Rule.
  • Click Continue.
The security group is created and assigned an ID (e.g., sg-48996e20). Your instance will be launched into this new security group.
5. Review your settings and launch the instance:
  • If all the settings are as you want them, click Launch.
  • When a confirmation message appears, click Close.
  • In the Navigation pane, click Instances to view the status of your instance. It takes a short time for an instance to launch. While the instance is launching, its status will be shown as pending.
After a short period, your instance’s status switches to running. To manually refresh the display at any time, you can click Refresh.
  • Record the public DNS name for your instance:
i) Select the running instance, and note the public DNS address in the bottom pane. You will need it for the next task.
When your instance’s status is running, you can connect to your instance and deploy your application.



Comments

Popular posts from this blog

AWS S3 Simple Storage Service

                             Amazon  S3  (Simple Storage Service) Amazon Simple Storage Service is storage for the Internet. It is designed to make web-scale computing easier for developers. Amazon  S3  has a simple web services interface that you can use to store and retrieve any amount of data, at any time, from anywhere on the web. What Is Amazon S3? Amazon Simple Storage Service is storage for the Internet. It is designed to make web-scale computing easier for developers. Amazon S3 has a simple web services interface that you can use to store and retrieve any amount of data, at any time, from anywhere on the web. It gives any developer access to the same highly scalable, reliable, fast, inexpensive data storage infrastructure that Amazon uses to run its own global network of web sites. The service aims to maximize benefits of scale and to pass those benefit...

AWS Route 53 & Routing Policy

Amazon Route 53 You can use Amazon Route 53 to register new domains, transfer existing domains, route traffic for your domains to your AWS and external resources, and monitor the health of your resources. Amazon  Route 53  ( Route 53 ) is a scalable and highly available Domain Name System (DNS). It is part of Amazon.com's cloud computing platform, Amazon Web Services (AWS). The name is a reference to TCP or UDP port  53 , where DNS server requests are addressed. ...  Route 53's  servers are distributed throughout the world. DNS management If you already have a domain name, such as example.com, Route 53 can tell the Domain Name System (DNS) where on the Internet to find web servers, mail servers, and other resources for your domain. Learn More Traffic management Route 53 traffic flow provides a visual tool that you can use to create and update sophisticated routing policies to route end users to multiple endpoints for your application. Le...

Amazon EBS Elastic Block Store

     Amazon Elastic Block Store Amazon  Elastic Block Store  (Amazon  EBS ) provides persistent block storage volumes for use with Amazon EC2 instances in the  AWS  Cloud. Each Amazon  EBS volume is automatically replicated within its Availability Zone to protect you from component failure, offering high availability and durability. Amazon Elastic Block Store (Amazon EBS) provides persistent block storage volumes for use with  Amazon EC2  instances in the AWS Cloud. Each Amazon EBS volume is automatically replicated within its Availability Zone to protect you from component failure, offering high availability and durability. Amazon EBS volumes offer the consistent and low-latency performance needed to run your workloads. With Amazon EBS, you can scale your usage up or down within minutes – all while paying a low price for only what you provision. Amazon EBS is designed for application workloads that benefit from fine tu...