Forum Discussion
F5 Bigip LTM v14 AWS CLI
I'm working on upgrading to bigip ltm v14 on the aws marketplace. My understanding is that v14 has the aws cli installed. I'm attempting to use the aws cli on v14 by running the following /opt/aws/awscli-1.10.26/bin/aws. When I do this I get
"Traceback (most recent call last): File "/opt/aws/awscli-1.10.26/bin/aws", line 19, in import awscli.clidriver ImportError: No module named awscli.clidriver"
Is there documentation of using the aws cli on the bigip for v14?
We were able to execute by setting the following environment variables.
export AWS_HOME=/opt/aws/awscli-1.10.26
- Akinori_WatanabNimbostratus
I have same issue. Did you solve it?
- Akinori_WatanabNimbostratus
We were able to execute by setting the following environment variables.
export AWS_HOME=/opt/aws/awscli-1.10.26
- AWalden_185388Nimbostratus
To add-on to your answer. There are two typos in the export PYTHONPATH at the awscli- and 1.10.26// Also a more permanent fix is to add what you suggested to the end of the ~/.bashrc file.
For the linux noobs
- vim ~/.bashrc
- hit i for insert
-
copy and paste the following three lines to the end of the file
export AWS_HOME=/opt/aws/awscli-1.10.26
export PATH=$PATH:$AWS_HOME/bin
export PYTHONPATH=$AWS_HOME/lib/python2.6/site-packages:/opt/aws/awscli-1.10.26/lib64/python2.6/site-packages
-
hit Esc and type :wq! then hit enter.
- source ~/.bashrc
- aws help
- Alex__ApplebaumEmployee
too late for this thread but for anyone coming to this after, python just switched to 2.7.
Just swap out "python2.6" in export to "python2.7" and should work again.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com