Amazon Elastic Compute Cloud
User Guide (API Version 2012-04-01)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid this page help you?  Yes  No   Tell us about it...

Instance Usage

The instance is your basic computation building block. Amazon EC2 offers multiple instance types from which you can choose. You can run as many or as few instances as you need at any given time.

[Note]Note

By default, you can run up to 20 instances. If you need more than 20 instances, please complete the Amazon EC2 Instance Request Form.

For information about available instance types, see Instance Families and Types.

Once launched, an instance looks very much like a traditional host. You have complete control of your instances; you have root access to each one and you can interact with them as you would any machine.

Here are some suggestions for making the best use of Amazon EC2 instances:

  • Do not rely on an instance's local storage for valuable, long-term data.

    When instances fail, the data on the local disk is lost. Use a replication strategy across multiple instances to keep your data safe, or store your persistent data in Amazon S3, or use Amazon EBS.

  • Define images based on the type of work they perform.

    For "Internet applications," you might define one image for database instances and another for web servers. Image creation and storage are cheap and easy operations, so you can individualize and customize as necessary. Specialized images can result in smaller sizes, which boot considerably faster.

  • Monitor the health of your instances.

    For more information, go to the Amazon CloudWatch product page.

  • Keep your Amazon EC2 firewall permissions as restrictive as possible.

    Only open up permissions that you require. Use separate security groups to deal with instances that have different security requirements. Consider using additional security measures inside your instance (such as using your own firewall). If you need to log in interactively (SSH), consider creating a bastion security group that allows external login and keep the remainder of your instances in a group that does not allow external login. For more information about security groups, see Using Security Groups .