Botocore.exceptions.ProfileNotFound when running code on AWS elastic beanstalk, but locally this is normal

I am trying to run a python application on Elastic Beanstalk which must have permissions for SQS and DB Dynamo.

I created a profile in the ~ / .aws / config file as follows:

[profile yolo]
aws_access_key_id = some-key
aws_secret_access_key = some-secret
region = some-region

and also launched an elastic beanstalk like:

eb init --profile yolo

but when I check the magazines online, it reports:

botocore.exceptions.ProfileNotFound: The config profile (yolo) could not be found

How do I get boto3 to recognize this profile on a flexible beanstalk?

Thank.

+4
source share
2 answers
+1

, ​​ AWS_DEFAULT_PROFILE, .

+1

All Articles