Is there a way to get access_key and secret_key from boto3?
<p>When I launch an EC2 instance with an IAM role I can use <code>boto3</code> on that EC2instance and not have to specify aws access and secret keys because <code>boto3</code> <a href="http://boto3.readthedocs.io/en/latest/guide/configuration.html#iam-role" rel="noreferrer">reads them automatically</a>. </p>

<pre><code>&gt;&gt;&gt; import boto3
&gt;&gt;&gt; s3 = boto3.resource("s3")
&gt;&gt;&gt; list(s3.buckets.all())[0]
s3.Bucket(name='my-bucket-name')
</code></pre>

<p><strong>Question</strong></p>

<p>I'm wondering if there is any way to get the access key and secret key from boto3? For example, how can I print them on to the standard console using <code>print</code></p>