Any sort of limit in AWS EC2 instances creation using python boto3.session.Session.create_instances

0

Is there any sort of hard limit in AWS EC2 instances creation using python boto3.session?Session.create_instances that are not dependent on the subscription plan

  • like the number of session.create_instances() hits per second?
  • or number of instance creations per second etc.?
  • or number of instances creation using session.create_instances() with same template etc

I am looking for any sort of limit AWS sets for** using boto3.session.Session.create_instances()** that are not dependent on the subscription plan,( means we can upgrade the plan if it is the case like the number of vCPU's )

Junaid
질문됨 8달 전174회 조회
1개 답변
0
수락된 답변

Hello there,

Thank you for reaching out to us.

I understand that you would like to know if there are any hard limits for launching instances using Boto3 API.

Firstly to mention, there is no specific hard limits here. Apart from vCPU limits, AWS throttle Amazon API requests for each AWS account on per-region basis. AWS ensure that all API calls don't exceed the specific throttling limits. When API request exceeds the API request rate for its category, the request returns the "RequestLimitExceeded" error code. The main reason behind this throttling is to ensure that all the customers, who share same underlying hardware, get fair chance over API calls. It prevents any one customer from utilizing all the resource and thereby ceasing services for other customers. Therefore, the throttle is implemented to make sure the systems can handle as many API request as possible and, at the same time, giving equal opportunity to all the customers.

API Throttling in general can be avoided by ensuring that the application uses an appropriate sleep interval between successive requests, along with exponential back-off retries.

For more information, please refer the following articles :

https://docs.aws.amazon.com/AWSEC2/latest/APIReference/throttling.html

https://aws.amazon.com/builders-library/timeouts-retries-and-backoff-with-jitter/

With this being said, if you have a valid use-case for increasing this API limit, you can request for the limit increase by opening a AWS support case : https://docs.aws.amazon.com/AWSEC2/latest/APIReference/throttling.html#throttling-increase

Thank you!

AWS
Nevin_J
답변함 7달 전

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

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

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

관련 콘텐츠