AWS CLI commands on JENKINS AWS CLI commands on JENKINS jenkins jenkins

AWS CLI commands on JENKINS


After discussion with you this is how this issue was resolved :

First corrected the command by removing configure from it.

Installed the awscli for the jenkins user :
pip install awscli --user

Used the absolute path of aws in your script
for eg. say if it's in ~/.local/bin/ use ~/.local/bin/aws kms encrypt --key-id xxxxxxx-xxx-xxxx-xxxx-xxxxxxxxxx --plaintext fileb://${x} --output text --query CiphertextBlob | base64 --decode > Encrypted-data.json in your script.Or add the path of aws in PATH.