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:
[email protected]


With regards,
Apache Git Services

Reply via email to