Skip to content

How do I resolve the "Your requested instance type is not supported in your requested Availability Zone" error I receive when I launch an EC2 instance?

2 minute read
0

When I launch an Amazon Elastic Compute Cloud (Amazon EC2) instance, I receive the "Your requested instance type is not supported in your requested Availability Zone" error. I want to determine the Availability Zone that I can use, and resolve the error.

Resolution

Note: If you receive errors when you run AWS Command Line Interface (AWS CLI) commands, then see Troubleshooting errors for the AWS CLI. Also, make sure that you're using the most recent AWS CLI version.

Determine the Availability Zones that support your instance type

You can use either the Amazon Elastic Compute Cloud (Amazon EC2) console or the AWS CLI to determine the Availability Zones that support your instance type.

Amazon EC2 console

Complete the following steps:

  1. Open the Amazon EC2 console.
  2. Choose the AWS Region where you want to launch the instance.
  3. In the navigation pane, choose Instance Types.
  4. For Filter instance types, enter your preferred instance type.
  5. Select your instance type.
  6. In the Networking section, review the Availability Zones that are listed under Availability Zones.

AWS CLI

Run the describe-instance-type-offerings command and include filters for the Availability Zone and the instance type that you want to launch. You can also include additional filters.

The following example command filters the search results by Availability Zone, instance type, and Region:

# aws ec2 describe-instance-type-offerings --location-type availability-zone  --filters Name=instance-type,Values=c5.xlarge --region af-south-1 --output table

Note: Availability Zone names might not map to the same location across AWS accounts. In the describe-instance-type-offerings command, use the availability-zone-id location type option to include Availability Zone IDs in the output list. You can use the Availability Zone ID to verify the Availability Zone mapping on your account.

Retry the request

To launch an instance to a supported Availability Zone, use the launch instance wizard on the Amazon EC2 console, or use the AWS CLI.

You can also not specify an Availability Zone in your request. If you don't specify an Availability Zone, then Amazon EC2 chooses an Availability Zone for you that supports your instance type.

Related information

Insufficient instance capacity

AWS OFFICIALUpdated 6 months ago