From notifications-return-15878-archive-asf-public=cust-asf.ponee.io@libcloud.apache.org Sun Jul 21 14:51:03 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 76040180672 for ; Sun, 21 Jul 2019 16:51:03 +0200 (CEST) Received: (qmail 54877 invoked by uid 500); 21 Jul 2019 14:51:02 -0000 Mailing-List: contact notifications-help@libcloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@libcloud.apache.org Delivered-To: mailing list notifications@libcloud.apache.org Received: (qmail 54868 invoked by uid 99); 21 Jul 2019 14:51:02 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Jul 2019 14:51:02 +0000 From: GitBox To: notifications@libcloud.apache.org Subject: [GitHub] [libcloud] Kami commented on issue #1321: SignatureDoesNotMatch for manual request Message-ID: <156372065749.19524.3895381335909709808.gitbox@gitbox.apache.org> Date: Sun, 21 Jul 2019 14:50:57 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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: users@infra.apache.org With regards, Apache Git Services