Finding Instance Types by Availability Zone in Canada Central Region

0
5
Asked By CloudySky22 On

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

Answered By DataDynamo45 On

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!

TechieChick99 -

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

InstanceMover88 -

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!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.