- Newest
- Most votes
- Most comments
Hello,
The best way to confirm an Instance type is available at any given moment in any Availability Zone; is to check the type offering (1-2) in CloudShell or anywhere where AWS CLI is deployed. The script below will provide you with the Availability Zones under ap-southeast-2 with f1.4xlarge Instances available, you can tweak it up to another Instance Type and region:
$ aws ec2 describe-instance-type-offerings --location-type "availability-zone" --filters "Name=location,Values=ap-southeast-2" --filters "Name=instance-type,Values=f1.4xlarge"
**Important: ** Keep in mind that these values fluctuate depending on demand and how AWS keeps on expanding the offers.
If your Instance is located in a different AZ, then the message output would be expected until the type offering is available in that particular Zone. I hope this helps
Have a great day!
References
- Finding an instance type - Finding an instance type using the AWS CLI - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-discovery.html#instance-discovery-cli
- describe-instance-type-offerings - https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instance-type-offerings.html
Relevant content
- asked a year ago
- Accepted Answerasked 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago
Thank you, via your aws-cli command, it showed that this instance-type was only available in 'ap-southeast-2b' (and not in 'ap-southeast-2a', where my current EC2 instance was located).
After making a new EC2 instance inside 'ap-southeast-2b', I'm successfully able to use the 'f1.2xlarge' instance type, and when I log in, I do see the
/dev/xfpga
device.