botocore.exceptions.ProfileNotFound when code run on AWS elastic beanstalk, but locally it's OK
<p>I am trying to run a python application on an Elastic Beanstalk which need to have permissions for the SQS and Dynamo DB.</p>

<p>I have created a profile under ~/.aws/config file like this:</p>

<pre><code>[profile yolo]
aws_access_key_id = some-key
aws_secret_access_key = some-secret
region = some-region
</code></pre>

<p>and also started the elastic beanstalk like:</p>

<pre><code>eb init --profile yolo
</code></pre>

<p>but when I check the logs online it states:</p>

<pre><code>botocore.exceptions.ProfileNotFound: The config profile (yolo) could not be found
</code></pre>

<p>How do I get the boto3 to know this profile on elastic beanstalk environment?</p>

<p>Thanks.</p>