April 2019
Intermediate to advanced
508 pages
11h 57m
English
In this section, we are going to start out with a new script, and the goal will be to have it enumerate various points of data about the IAM service and the AWS account. The script will start with some of the things that we have already filled in:
#!/usr/bin/env python3import boto3session = boto3.session.Session(profile_name='Test', region_name='us-west-2')client = session.client('iam')
We have declared the file to be a python3 file, imported the boto3 library, created our boto3 session using the credentials from the Test profile in the us-west-2 region, and then created a boto3 client for the IAM service with those credentials.
We are going to start off with the get_account_authorization_details API call ( ...
Read now
Unlock full access