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년 전303회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠