This is a python 2 snippet showing how to generate headers to authenticate with HashiCorp's Vault using the AWS authentication method.
It will look for credentials in the
default boto3 locations;
if you need to supply custom credentials (such as from an AssumeRole
call), you would use the
botocore.session.set_credentials
method before calling create_client
.