

The Amazon SDK for Java 1.x reached end-of-support on December 31, 2025. We recommend that you migrate to the [Amazon SDK for Java 2.x](https://docs.amazonaws.cn/sdk-for-java/latest/developer-guide/home.html) to continue receiving new features, availability improvements, and security updates.

# Tutorial: Starting an EC2 Instance
<a name="how-to-ec2"></a>

This tutorial demonstrates how to use the Amazon SDK for Java to start an EC2 instance.

**Topics**
+ [Prerequisites](#prerequisitesec2)
+ [Create an Amazon EC2 Security Group](create-security-group.md)
+ [Create a Key Pair](create-key-pair.md)
+ [Run an Amazon EC2 Instance](run-instance.md)

## Prerequisites
<a name="prerequisitesec2"></a>

Before you begin, be sure that you have created an Amazon Web Services account and that you have set up your Amazon credentials. For more information, see [Getting Started](getting-started.md).