python/example_code/iam/README.md
Shows how to use the AWS SDK for Python (Boto3) to work with AWS Identity and Access Management (IAM).
<!--custom.overview.start--> <!--custom.overview.end-->IAM is a web service for securely controlling access to AWS services. With IAM, you can centrally manage permissions in your AWS account.
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
ListPolicies)Code examples that show you how to perform the essential operations within a service.
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 get started using IAM.
python hello/hello_iam.py
This example shows you how to create a user and assume a role.
Start the example by running the following at a command prompt:
python scenario_create_user_assume_role.py
This example shows you how to create a load-balanced web service that returns book, movie, and song recommendations. The example shows how the service responds to failures, and how to restructure the service for more resilience when failures occur.
Start the example by running the following at a command prompt:
python ../../cross_service/resilient_service/runner.py
Complete details and instructions on how to run this example can be found in the README for the example.
<!--custom.scenarios.cross_ResilientService.end-->This example shows you how to create users and attach policies to them.
Start the example by running the following at a command prompt:
python user_wrapper.py
This example shows you how to manage access keys.
Start the example by running the following at a command prompt:
python access_key_wrapper.py
This example shows you how to do the following:
Start the example by running the following at a command prompt:
python policy_wrapper.py
This example shows you how to do the following:
Start the example by running the following at a command prompt:
python role_wrapper.py
This example shows you how to do the following:
Start the example by running the following at a command prompt:
python account_wrapper.py
This example shows you how to do the following:
Start the example by running the following at a command prompt:
python policy_wrapper.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