I received the error message "Your requested instance type is not supported in your requested Availability Zone" when launching an Amazon Elastic Compute Cloud (Amazon EC2) instance. How can I determine which Availability Zone to use?
Some Availability Zones don't support particular instance types. If you receive the error "Your requested instance type is not supported in your requested Availability Zone," do the following:
- Determine which Availability Zones support your instance type.
- Retry the request and specify an Availability Zone that supports your chosen instance type. Or, submit the request without specifying an Availability Zone.
Note: This error is different from an insufficient instance capacity error. For information on insufficient capacity errors, see Insufficient instance capacity.
Determine which Availability Zones support your instance type
From the Amazon EC2 console:
- Open the Amazon EC2 console.
- Choose the Region where you want to launch the instance.
- Select Instance Types.
- For Filter instance types, enter your preferred instance type.
- Select your preferred instance type.
- Under Networking, review the Availability Zones listed under Availability Zones.
From the AWS Command Line Interface (AWS CLI):
Note: If you receive errors when running AWS CLI commands, make sure that you’re using the most recent version of the AWS CLI.
Use the describe-instance-type-offerings command and include filters for the Availability Zone and the instance type you want to launch. Add additional filters as needed. The following example command filters the search results by Availability Zone, instance type, and Region. For more information on the describe-instance-type-offerings command, see describe-instance-type-offerings in the AWS CLI Command Reference.
# 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 accounts. For more information, see Availability Zones. Use the location-type availability-zone-id command to have the output list Availability Zone IDs. You can use the Availability Zone ID to validate the Availability Zone mapping on your account.
Retry the request
When launching the instance, choose a supported Availability Zone during instance launch. You can launch an instance to an Availability Zone using the old launch wizard, new launch wizard, or using AWS CLI. Or, don't specify an Availability Zone in your request. If you don't specify an Availability Zone, Amazon EC2 chooses an Availability Zone for you that supports your instance type.