How To Fix Peer Not Authenticated Errors While Using AWS API Tools
erics, Posted February 9th, 2016 at 6:18:24pm
I was getting the following errors when using an older version of the Amazon EC2 API Tools:
$ ec2-describe-regions
Unknown problem connecting to host: 'https://ec2.amazonaws.com'
Unable to execute HTTP request: peer not authenticated
The solution was to upgrade to the latest AWS CLI tools and start using the aws
command instead. For example:
aws ec2 describe-regions --output text
As root:
1 2 3 4 5 6 7 8 9 |
cd curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" unzip awscli-bundle.zip yum install python26 /usr/bin/python26 awscli-bundle/install -i /opt/aws/awscli -b /usr/bin/aws export AWS_ACCESS_KEY={ACCESS_KEY_HERE} export AWS_SECRET_KEY={SECRET_KEY_HERE} export JAVA_HOME=/usr/lib/jvm/jre aws ec2 describe-regions --output text |
Leave Your Comment
All fields marked with "*" are required.