From 2516406590dae82a045be64efba9f7b87af9cc49 Mon Sep 17 00:00:00 2001 From: RachelHooley <167069628+RachelHooley@users.noreply.github.com> Date: Wed, 12 Feb 2025 11:16:07 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20c5f06?= =?UTF-8?q?9b1ec00da1039879a0d047054273a47588f=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- faqs/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/faqs/README.md b/faqs/README.md index 55721552f..8d6ccf46c 100644 --- a/faqs/README.md +++ b/faqs/README.md @@ -347,6 +347,21 @@ For example: After 12 hours of inactivity, you get signed out of the Spot console. + + + +
+ Can I integrate Spotinst SDK with AWS Lambda? + +
+ +The Spotinst SDK library is supported just like any other Python package. + +Spotinst-sdk2 is not part of the default PyPl. You need to create a deployment package with it to use it in the Lambda function: + +1. [Create a ZIP deployment package with dependencies](https://docs.aws.amazon.com/lambda/latest/dg/python-package.html#python-package-create-dependencies). Make sure that all dependencies and Lambda functions are at the same level, zipped together, and uploaded. +2. Update the [default timeout](https://docs.aws.amazon.com/lambda/latest/dg/configuration-timeout.html) for the Lambda function to 60 seconds. +