I am struggling to find out how I can get my aws_access_key_id and aws_secret_access_key dynamically from my code.
In boto2 I could do the following: boto.config.get_value('Credentials', 'aws_secret_access_key')
but I can't seem to find a similar method in boto3. I was able to find the keys if I look in boto3.Session()._session._credentials
but that seems like the mother of all hacks to me and I would rather not go down that road.