Skip to Content
Building Serverless Applications with Python
book

Building Serverless Applications with Python

by Jalem Raj Rohit
April 2018
Intermediate to advanced content levelIntermediate to advanced
272 pages
4h 52m
English
Packt Publishing
Content preview from Building Serverless Applications with Python

Using STS inside Lambda for secure session-based execution

While accessing other AWS services and components from inside your Lambda functions, you can make use of AWS's Simple Token Service (STS) to ensure session-based access, which will essentially add an extra layer of security. As we have already discussed, and learned how to use, STS credentials in our code, we will skip over to the documentation links. 

The official documentation of AWS STS will help you understand how session-based access works: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html.

And this is the Boto3 Python Documentation for using STS credentials inside Python code: http://boto3.readthedocs.io/en/latest/reference/services/sts.html.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Serverless Microservices in Python

Building Serverless Microservices in Python

Richard Takashi Freeman

Publisher Resources

ISBN: 9781787288676Other