I scheduled a cron job for graffiti-monkey:
15 0 * * * /home/ubuntu/scripts/graffiti_monkey.sh
but its not executing and log says
[ERROR] No AWS credentials found - check your credentials
How can I give aws crendentials to the .sh
file so that cron will execute it?
The AWS Command Line Interface documentation describes a few ways to store credentials.
Try executing aws configure
in your terminal (as the user running the cron):
$ aws configure
AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE
AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Default region name [None]: us-west-2
Default output format [None]: json
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments