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. +