GithubHelp home page GithubHelp logo

Comments (2)

tim-finnigan avatar tim-finnigan commented on August 24, 2024 1

Thanks for the feature request. As noted here:

The service quota for spot instances is limited by the number of vCPUs, not the number of instances.

The number of vCPUs for each instance type can be found here: https://aws.amazon.com/ec2/instance-types/?nc1=h_ls. And you can find documentation on requesting quota increases here: https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html

It looks like you can do this programmatically via the request_service_quota_increase command. For example:

import boto3

# Create a Service Quotas client
service_quotas = boto3.client('service-quotas')

# Request an increase in the Spot Instance limit
response = service_quotas.request_service_quota_increase(
    ServiceCode='ec2',
    QuotaCode='L-1216C47A',
    DesiredValue=1000,  # Set the desired value for the new limit
)

# Check the response
print(response)

For any requests involving service APIs please create a new issue in our cross-SDK repository and we can bring those up to the appropriate team.

I also noticed you're using version 1.24.70 which is very old. The latest version of Boto3 per the CHANGELOG is 1.34.107. Please consider updating your version of Boto3 for access to the latest updates/fixes.

from boto3.

github-actions avatar github-actions commented on August 24, 2024

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

from boto3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.