python/example_code/sts/README.md
Shows how to use the AWS SDK for Python (Boto3) to work with AWS Security Token Service (AWS STS).
<!--custom.overview.start--> <!--custom.overview.end-->AWS STS creates and provides trusted users with temporary security credentials that can control access to your AWS resources.
For prerequisites, see the README in the python folder.
Install the packages required by these examples by running the following in a virtual environment:
python -m pip install -r requirements.txt
Code excerpts that show you how to call individual service functions.
Code examples that show you how to accomplish a specific task by calling multiple functions within the same service.
This example shows you how to assume a role that requires an MFA token.
Start the example by running the following at a command prompt:
python assume_role_mfa.py
This example shows you how to do the following:
Start the example by running the following at a command prompt:
python federated_url.py
This example shows you how to get a session token that requires an MFA token.
Start the example by running the following at a command prompt:
python session_token.py
⚠ Running tests might result in charges to your AWS account.
To find instructions for running these tests, see the README
in the python folder.
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0