Unable to run AWS CLI commands from rundeck

332 views
Skip to first unread message

drvuc...@gmail.com

unread,
Mar 12, 2018, 8:56:33 AM3/12/18
to rundeck-discuss

How to run, for example, script with aws iam list-users ?

From terminal no issues at all, but rundeck complains:

Traceback (most recent call last): File "/bin/aws", line 19, in <module> import awscli.clidriver File "/usr/lib/python2.7/site-packages/awscli/clidriver.py", line 17, in <module> import botocore.session ImportError: No module named botocore.session


botocore is installed,

when running from terminal python script:

import botocore.session no issues, but when running same code from rundeck

PYTHON_ARG="$1" python - <<END

#!/bin/python
import botocore.session

END



getting:

Traceback (most recent call last): File "/bin/aws", line 19, in <module> import awscli.clidriver File "/usr/lib/python2.7/site-packages/awscli/clidriver.py", line 17, in <module> import botocore.session ImportError: No module named botocore.session





Message has been deleted

S Bhaskar Sarma Emani

unread,
Apr 11, 2019, 11:53:17 AM4/11/19
to rundeck-discuss
Hi All,

I am looking for the same request . have you got solution for this . if yes please help me.

rac...@rundeck.com

unread,
Apr 11, 2019, 12:15:50 PM4/11/19
to rundeck-discuss
Hi Bhaskar,

Seems look a issue related with python library, check that:

https://devops.stackexchange.com/a/3620

Hope it helps!
Reply all
Reply to author
Forward
0 new messages