You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by GitBox <gi...@apache.org> on 2019/07/21 10:23:34 UTC

[GitHub] [libcloud] x-wf opened a new issue #1321: SignatureDoesNotMatch for manual request

x-wf opened a new issue #1321: SignatureDoesNotMatch for manual request
URL: https://github.com/apache/libcloud/issues/1321
 
 
   ## Summary
   While attempting to perform a manual request, it appears to be an issue with the credentials being used.
   
   
   ## Detailed Information
   
   Upon attempting to create EC2 Launch Template, by performing a manual request with the EC2 driver, it's returning `libcloud.common.types.InvalidCredsError: 'SignatureDoesNotMatch`
   
   More specifically I have a function which I attempt to create a simple Launch Template
   ```
   ialize test
   def initialize_test():
   
       # authenticate
       aws = get_driver(Provider.EC2)
       driver = login_aws(aws)
   
       // Other actions that are used e.g. driver.ex_create_security_group works perfect
       // Manually performing requests isn't working
       new_template(driver)
       
   def new_template(driver):
       params = {
           'Action': 'CreateLaunchTemplate',
           'LaunchTemplateName': "test-template",
           'LaunchTemplateData': {
               'ImageId': "ami-06b41651a26fbba09",
               'InstanceType': "t3.xlarge",
               'NetworkInterface': {
                   1: {
                       'AssociatePublicIpAddress': True
                   }
               }
           }
       }
   
       // Breaks here
       response = driver.connection.request("/", params=params)
   ```
   
   
   And this throws
   ```
   libcloud.common.types.InvalidCredsError: 'SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.'
   ```
   The project used is running python 3.7.4, using apache-libcloud 2.5.0.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services