# aws-cli tools broken in EC2 build

**URL:** https://forums.suse.com/t/aws-cli-tools-broken-in-ec2-build/27540
**Category:** Amazon-EC2
**Created:** [October 20, 2015, 9:23am UTC](https://forums.suse.com/t/aws-cli-tools-broken-in-ec2-build/27540 "2015-10-20T09:23:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![davidwann](https://avatars.discourse-cdn.com/v4/letter/d/47e85d/32.png) [@davidwann](https://forums.suse.com/u/davidwann)
#### Post date: [October 20, 2015, 9:23am UTC](https://forums.suse.com/t/aws-cli-tools-broken-in-ec2-build/27540/1 "2015-10-20T09:23:14Z")

</div>

When I run aws --version in a standard SLES 11.3 AWS build with a public  
IP, I get the following trace:

Traceback (most recent call last):  
File “/usr/bin/aws”, line 23, in   
sys.exit(main())  
File “/usr/bin/aws”, line 19, in main  
return awscli.clidriver.main()  
File “/usr/lib64/python2.6/site-packages/awscli/clidriver.py”, line  
45, in main  
driver = create\_clidriver()  
File “/usr/lib64/python2.6/site-packages/awscli/clidriver.py”, line  
54, in create\_clidriver  
event\_hooks=emitter)  
File “/usr/lib64/python2.6/site-packages/awscli/plugin.py”, line 44,  
in load\_plugins  
modules = \_import\_plugins(plugin\_mapping)  
File “/usr/lib64/python2.6/site-packages/awscli/plugin.py”, line 61,  
in \_import\_plugins  
module = **import** (path, fromlist=[module])  
File “/usr/lib64/python2.6/site-packages/awscli/handlers.py”, line 24,  
in   
from awscli.customizations.ec2addcount import ec2\_add\_count  
File  
“/usr/lib64/python2.6/site-packages/awscli/customizations/ec2addcount.py”,  
line 16, in   
from botocore.parameters import StringParameter  
ImportError: No module named parameters

The aws-cli package is installed but does not seem to be a part of any  
repositories. Is there an easy way to update the tools and/or get it  
working? The GitHub version requires pip, but pip is not available in the repositories either.

David W.

---

<div class="post-metadata">

### Author: ![rjschwei](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rjschwei/32/8937_2.png) [@rjschwei](https://forums.suse.com/u/rjschwei)
#### Post date: [October 21, 2015, 3:02pm UTC](https://forums.suse.com/t/aws-cli-tools-broken-in-ec2-build/27540/2 "2015-10-21T15:02:42Z")

</div>

The aws-cli package did not make it into the SLES 11 SP{3,4} public cloud repository stream because SLES 11 SP{3,4} has many Python packages that are of the older variety that we could not update and that aws-cli depends on. The version of aws-cli that is built into the images we publish is pulled from the openSUSE Build service [1]. First, what we publish in our images should work, thus I filed a bug [2]. That said, the SP3 images are considered deprecated, see [3] since SLES 11 SP4 has been released [4]. I expect the same bad behavior in SLES 11 SP4 and we’ll try and get it fixed or remove the package from the next image build.

[1] [https://build.opensuse.org/package/show/Cloud:Tools/aws-cli](https://build.opensuse.org/package/show/Cloud:Tools/aws-cli)  
[2] [https://bugzilla.suse.com/show\_bug.cgi?id=951386](https://bugzilla.suse.com/show_bug.cgi?id=951386)  
[3] [https://www.suse.com/communities/conversations/suse-image-life-cycle-public-cloud-deployments/](https://www.suse.com/communities/conversations/suse-image-life-cycle-public-cloud-deployments/)  
[4] [https://www.suse.com/communities/conversations/suse-linux-enterprise-server-11-sp4-landed-public-cloud/](https://www.suse.com/communities/conversations/suse-linux-enterprise-server-11-sp4-landed-public-cloud/)

---

<div class="post-metadata">

### Author: ![davidwann](https://avatars.discourse-cdn.com/v4/letter/d/47e85d/32.png) [@davidwann](https://forums.suse.com/u/davidwann)
#### Post date: [October 21, 2015, 3:24pm UTC](https://forums.suse.com/t/aws-cli-tools-broken-in-ec2-build/27540/3 "2015-10-21T15:24:41Z")

</div>

“or remove the package from the next image build”???

Really? I would have thought that the AWS command line tools were a fairly important package to get right in an AWS build. For example, the tools allow you to connect to an S3 bucket using the IAM role of the instance. This is probably the most secure way to run automated SUSE build scripts for a particular type of instance, and hence be able to scale a solution utilising SLES nodes. All the other linux builds allow you to do this.

---

<div class="post-metadata">

### Author: ![rjschwei](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rjschwei/32/8937_2.png) [@rjschwei](https://forums.suse.com/u/rjschwei)
#### Post date: [October 31, 2015, 11:09pm UTC](https://forums.suse.com/t/aws-cli-tools-broken-in-ec2-build/27540/4 "2015-10-31T23:09:11Z")

</div>

Resolved with latest version, please upgrade.

zypper ar [http://download.opensuse.org/repositories/Cloud:/Tools/SLE\_11\_SP3/](http://download.opensuse.org/repositories/Cloud:/Tools/SLE_11_SP3/) cloud\_tools  
zypper ar [http://download.opensuse.org/repositories/devel:/languages:/python/SLE\_11\_SP3/](http://download.opensuse.org/repositories/devel:/languages:/python/SLE_11_SP3/) python\_dev

zypper in aws-cli-1.8.12-20.1.x86\_64

then accept the vendor changes to OBS for the following packages:

python-jmespath  
python-botocore  
python-bcdoc
