1

I set up a Jenkins job to run an aws command. When I execute the build, it fails and the error message is:

+ /usr/local/aws/bin/aws elasticbeanstalk describe-environments
/tmp/hudson3332739386589747399.sh: 2: /tmp/hudson3332739386589747399.sh: /usr/local/aws/bin/aws: not found 
Build step 'Execute shell' marked build as failure

I don't know what I'm doing wrong. Any ideas how to fix it?

4
  • Make sure to have IAM permissions to your AWS account on jenkins
    – iSkore
    Mar 25, 2016 at 9:41
  • Have you specified Access Key ID/Secret Access Key/Region ?
    – ALex_hha
    Mar 25, 2016 at 9:42
  • For the Access Keys and Region,yeah I specified them
    – Ahmed
    Mar 25, 2016 at 10:05
  • @ahmed, no problem! Glad to help. I have posted this as the answer. Please mark it as your solution to properly close out this question
    – iSkore
    Mar 25, 2016 at 11:08

1 Answer 1

0

Be sure to have appropriate permissions for Jenkins to access your AWS Account in your IAM role or permission set that it assumes.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .