I am trying to run a python application on an Elastic Beanstalk which need to have permissions for the SQS and Dynamo DB.
I have created a profile under ~/.aws/config file like this:
[profile yolo]
aws_access_key_id = some-key
aws_secret_access_key = some-secret
region = some-region
and also started the elastic beanstalk like:
eb init --profile yolo
but when I check the logs online it states:
botocore.exceptions.ProfileNotFound: The config profile (yolo) could not be found
How do I get the boto3 to know this profile on elastic beanstalk environment?
Thanks.
You will also get this error if AWS_DEFAULT_PROFILE environment variable is set, but no config file is present.
Try changing your .aws/config file header to - [yolo]
instead of [profile yolo]
, and also separating the config and credentials to two files, as described in this link - http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html
This should fix your problems.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With