Python boto3 how to parse role_arn from AWS_CONFIG_FILE?
I have an AWS config file that my boto3 session has access to, via the AWS_CONFIG_FILE environment variable. The config file looks like this: (multi-account environment) [profile profile1] credential_source Environment region=us-east-whatever role_arn=arn:aws:iam:<ACCOUNT NUMBER 1>:role/all-profiles-same-role-name [profile profile2] credential_source Environment region=us-east-whatever role_arn=arn:aws:iam:<ACCOUNT…