Are ec2 instance types unique per account?

0

Hello,

in our app, we present list of instance types thus we need the full list of types before user proceeds with launching it. The AWS API provides calls to get list of all instance types, but it is an extensive list (currently about 550) which means to do 6 API requests because of the 100 elements limit. The workaround would be to globally fetch the list of instance types for each region daily and present the very same list to all our accounts, but the question is - can be instance types responses different per individual accounts?

I can imagine a situation when a customer pays some special plan where different kind of instance types are available. So I want to double check before we commit to any kind of backround job that would pre-fetch instance types on a daily basis.

Thanks

lzap
已提问 2 年前302 查看次数
2 回答
1

Unless an account is part of a preview for a particular instance type then the list will be the same for all accounts.

AWS
已回答 2 年前
  • Really appreciate the response, do you have any link that would prove this? I mean, everything looks that it is just like that (common price lists, everything seems to be pretty transparent in docs and even SDK/API has all the type names hardcoded). Just want to find any official word on this.

  • Naturally I also think that types can differ per region, that is pretty logical. Thanks!

1

The available instance types can vary within a region, one AZ has the instance-type and another AZ within the same region does not. To further complicate things, each account has a different AZ mapping, AZ1 in Account1 may be AZ2 in Account2. For example:

aws ec2 describe-availability-zones --query AvailabilityZones[?ZoneType==\`availability-zone\`].ZoneId --region us-west-2
aws ec2 describe-instance-type-offerings --location-type availability-zone-id --filters Name=instance-type,Values=t1.micro --region us-west-2 --query InstanceTypeOfferings[*].Location
profile pictureAWS
专家
kentrad
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则