1 Answer
- Newest
- Most votes
- Most comments
2
Make sure the instance type is available in the availability zone:
aws ec2 describe-instance-type-offerings \
--location-type availability-zone \
--filters Name=location,Values=us-east-2b Name=instance-type,Values=hpc6a.48xlarge \
--region us-east-2
For instance in Ohio, it is only available in us-east-2b.
Relevant content
- asked 9 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
@kentrad Should I assume that the availability zones for an instance does not change often and if I want to use that instance type now then I need to move to that region?
@kentrad Thanks, save me a lot of time. That page should probably be updated to check the availability zone.
An EC2 instance is deployed to a subnet and a subnet is deployed to an availability zone. So, the EC2 instance does not change AZs. To move an instance, you will need to do a snapshot and spin up a new instance in the different subnet/AZ using the snapshot. Or if you are moving to another region, copy the snapshot to the other region and create a new instance in the new region/az/subnet. But check the AZs of your current region to see if that instance type is available.