Welcome - Amazon Elastic Compute Cloud


This is the Amazon EC2 API Reference. It provides descriptions, API request parameters, and the XML response for each of the Amazon EC2 Query API actions. Note that the Amazon EC2 API includes actions for Amazon EC2 plus additional services, such as Amazon EBS and Amazon VPC. For more information, see Actions by service.

Alternatively, use one of the following methods to access the Amazon EC2 API, instead of using the Query API directly:

How Do I? Relevant Documentation

Learn about using the Query API

Making requests to the Amazon EC2 API

Learn about the permissions required to call an Amazon EC2 API action

Actions, resources, and condition keys for Amazon EC2

Get the list of API actions by service and resource

Actions by service

Get the alphabetical list of API actions


Get descriptions of the API error codes

Error codes for the Amazon EC2 API


As of October 14, 2022, HTTP responses from the Amazon EC2 APIs no longer include a reason-phrase element. As recommended by RFC7230, you should ensure that your applications do not make use of the reason-phrase content. Ensure that your applications use the 3-digit status-code element included in the HTTP response instead.