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.con
boto.con
Use botocore
>>> import botocore.session >>> session = botocore.session.get_session() >>> session.get_credentials().access_key 'AKIAABCDEF6RWSGI234Q' >>> session.get_credentials().secret_key 'abcdefghijkl+123456789+qbcd' >>> session.get_config_variable('region') 'us-east-1'