Kami commented on issue #1321: SignatureDoesNotMatch for manual request
URL: https://github.com/apache/libcloud/issues/1321#issuecomment-513560984
 
 
   Which signature algorithm you are using? I believe we default to v2.
   
   I imagine it's something related to the nested dictionary you are trying to 
use - in EC2 driver we send data via query parameters and not as part of a 
request body.
   
   This means you should use ``parent key.child key``` notation for your query 
param keys. So something like "params = {"LaunchTemplateData.ImageId: 
"...."}``. You can find an example of that here - 
https://github.com/apache/libcloud/pull/1224/files#diff-36825a12922cd525dde5f5dd9635f775R1887
   
   If that doesn't work, I would add some debug / print statements to this 
method and see what is going on - 
https://github.com/apache/libcloud/blob/trunk/libcloud/common/aws.py#L205
   
   And perhaps just try:
   
   ```python
       params = {
           'Action': 'CreateLaunchTemplate',
       }
   ```
    To see if that works (I believe it should and shouldn't throw signature 
mismatch error).

----------------------------------------------------------------
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