Thursday, November 1, 2018

AWS CLI error in Amazon Linux



AWS CLI error in Amazon Linux









AWS CLI - is AWS Command Line Interface. It is a tool that brings in all the AWS provided services under a single roof, meaning, we will be able to create, modify and access resources using this command line interface via commands

We all know that we need to install in any flavor of Linux; recently, I faced an issue of accessing AWS CLI in Amazon linux AMI

Accessing aws from shell prompt returns "too few arguments" or aws --version returns awscli version installed in that instance

Let us see on resolving the same

Error:

[ec2-user@ip-xx.xx.xx] aws

ImportError: cannot import name HTTPClientError


Issue:

  1. could be that system update was applied using "sudo yum update" which might have updated any dependencies or so


Resolution:

  • re-install didnt work
  • sudo pip install upgrade --awscli - resolved the issue....Yayyyyyyyyyy !!!







Monday, October 22, 2018

Jenkins Dynamic Slaves setup - Quick Tip #2

Jenkins Dynamic Slaves setup - Quick Tip #2






While setting up Amazon EC2 plugin configuration of dynamic slaves, i recently came across quite some errors/issues and would like to share it here based on the error messages rather clubbing resolutions provided, altogether in one single thread post

So, now lets move on to the Tip of the day