You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "Katriel Traum (JIRA)" <ji...@apache.org> on 2014/08/21 16:59:11 UTC

[jira] [Created] (LIBCLOUD-606) Can not connect to AWS with IAM role temporary credentials

Katriel Traum created LIBCLOUD-606:
--------------------------------------

             Summary: Can not connect to AWS with IAM role temporary credentials
                 Key: LIBCLOUD-606
                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-606
             Project: Libcloud
          Issue Type: Bug
          Components: Compute
            Reporter: Katriel Traum
            Priority: Minor


Can not connect to AWS with IAM role temporary credentials.

Using key, secret and token, with debug enabled, I get the following headers:

# -------- begin 44002048 request ----------
curl -i -X GET -H 'Host: ec2.eu-west-1.amazonaws.com' -H 'X-LC-Request-ID: 44002048' -H 'Accept-Encoding: gzip,deflate' -H 'User-Agent: libcloud/0.15.1 (Amazon EC2 (eu-west-1)) ' --compress 'https://ec2.eu-west-1.amazonaws.com:443/?SignatureVersion=2&AWSAccessKeyId=<REDECTED>&Timestamp=2014-08-21T14%3A45%3A19Z&SignatureMethod=HmacSHA256&Version=2013-10-15&Signature=<REDACTED>&Action=DescribeInstances'
# -------- begin 44002048:44002696 response ----------
HTTP/1.1 401 Unauthorized^M
Transfer-Encoding: chunked^M
Date: Thu, 21 Aug 2014 14:45:19 GMT^M
Server: AmazonEC2^M
^M
fe^M
<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>AuthFailure</Code><Message>AWS was not able to validate the provided access credentials</Message></Error></Errors><RequestID>5032a22a-e2d2-45f6-be8f-92d3294d1aec</RequestID></Response>^M
0^M

# -------- end 44002048:44002696 response ----------

It doesn't seem like the supplied token is in the header



--
This message was sent by Atlassian JIRA
(v6.2#6252)