[16:19] <steveporter92> hi im having trouble executing the awscli tool from my cloud-init config on ec2
[16:20] <steveporter92> in runcmd:
[16:20] <steveporter92> im pip installing the awscli
[16:20] <steveporter92> and running - 'aws s3 cp --region eu-west-1 s3://repo/puppet-latest.tar.gz /tmp/puppet-latest.tar.gz'
[16:21] <steveporter92> but it throws the error /var/lib/cloud/instance/scripts/runcmd: 5: /var/lib/cloud/instance/scripts/runcmd: aws: not found
[16:21] <steveporter92> in my log
[16:27] <steveporter92> any ideas?
[16:28] <Odd_Bloke> steveporter92: Is awscli installed?
[16:28] <Odd_Bloke> (Check the log to see if it's actually being installed before your script is run; I can't remember what order things happen in)
[16:32] <smoser> steveporter92, its either ordering or path
[16:32] <smoser> runcmd may not have /usr/local/bin in its path, i think it should, but may not.
[16:33] <smoser>  /var/log/cloud-init-output.log should show you some more info. you can also just try running that command yourself.
[16:40] <steveporter92> yeah it was the path
[16:40] <steveporter92> thanks guys :)