I'm working with EC2 instances in the Canada Central region and ran into a bit of a snag. After checking the official documentation, I realized that while I can set up t3a instances, some availability zones (like ca-central-1d) don't support them, even though they're available in the region itself. I need to find a reliable source that lists instance types available by each AZ as well as by region. Is there a way to easily access this info so I can plan future deployments more effectively? Thanks!
1 Answer
You can use the AWS CLI to get a list of instance types available by availability zone. Just run this command:
```
aws ec2 describe-instance-type-offerings
--location-type availability-zone
--region ca-central-1
--query 'InstanceTypeOfferings[*].{AZ:Location, Type:InstanceType}'
--output table
```
If you're specifically interested in t3a instances, here’s the command for that:
```
aws ec2 describe-instance-type-offerings
--location-type availability-zone
--region ca-central-1
--filters "Name=instance-type,Values=t3a.*"
--query 'InstanceTypeOfferings[*].{AZ:Location, Type:InstanceType}'
--output table
```
This will give you a neat table showing which instance types are available per AZ, and you can see what’s in ca-central-1a and 1b too!
If we decide to stick with the AMD versions, what’s the easiest way to transfer an instance from AZ D to AZ B? Is it just about taking a backup and restoring it, or is there a more automated process? I haven't done this before!

Just a heads up, the AZ labels can differ between accounts, so you might want to double-check that info.