web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / AWS Signature using HT...
Power Automate
Unanswered

AWS Signature using HTTP Action

(0) ShareShare
ReportReport
Posted on by 47

Trying to use Amazon SP-API to get some data from Amazon Seller Central into Power Automate but I'm stuck on the step where you need to generate temporary credentials using AWS STS I manage to do it in Postman following this guide but cannot seem to create the authorization in Power Automate using the HTTP Action. I've found only the suggestions in this post but seems too complicated to create python web app in azure and then invoke but will do it if no other solution is possible. https://powerusers.microsoft.com/t5/Building-Flows/Connect-to-Amazon-S3/td-p/156106

 

 

Here is how the authorization looks in Postman:

Pullox_0-1647710139916.png

 

I cannot figure out how to recreate this AWS authorization in the HTTP action and adding the access key, secret and session token manually defeats the purpose of automating it.

 

Pullox_1-1647710288465.png

 

Thanks in advance for all your help, suggestions and/or criticism. Any hints will be highly appreciated.

 

Sincerley,

Pullox

 

Categories:
I have the same question (0)
  • Pullox Profile Picture
    47 on at

    Wanted to share an update on my progress with this.

    I found an encodian connector called "Create HMAC" reference here. Which I believe might help solve the issue with signature, from the AWS documentation here it seems that I need to do 4 HMAC calculations but I cannot figure out which part keep getting wrong.

     

    Here is a part of my flow if it helps:

    Pullox_0-1648205102964.png

     

    I keep getting this error from the STS HTTP request which I understand as I'm doing some wrong regarding the signature.

     

    <ErrorResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
     <Error>
     <Type>Sender</Type>
     <Code>SignatureDoesNotMatch</Code>
     <Message>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.</Message>
     </Error>
     <RequestId>0c3cd747-ffa2-4beb-b909-38fae55c846d</RequestId>
    </ErrorResponse>

     

  • Pullox Profile Picture
    47 on at

    Hello,

     

    I'm still super stuck with this issue so sharing my progress hoping that someone can help out. 🙂

     

    Here is summary of the signing steps and my recreation of it in Power Automate:

     

    To create a signed request, complete the following:

    Pullox_0-1648571838718.png

     

    Pullox_1-1648571904397.png

     

    • Task 3: Calculate the signature for AWS Signature Version 4

      Derive a signing key by performing a succession of keyed hash operations (HMAC operations) on the request date, Region, and service, with your AWS secret access key as the key for the initial hashing operation. After you derive the signing key, you then calculate the signature by performing a keyed hash operation on the string to sign. Use the derived signing key as the hash key for this operation.

    Pullox_2-1648571980666.png
    Pullox_3-1648572012886.png
    Pullox_4-1648572037919.png
    Pullox_5-1648572064558.png

    Pullox_6-1648572103169.png

     

    Pullox_8-1648572197982.png

     

    Only thing that comes to my mind is the fact that I cannot seem to output the hashes from Task 3 in binary as Power Automate doesn't show binary even if you use the expression base64ToBinary it shows a json representation of a binary output..

     

     

     

    {
     "$contenct-type": "application/octet=stream",
     "$conctent": "ASDdsaASDQWesdsdgHdfgfDsdffdsfDS524DF"
    }

     

     

     

    Apologies for the long post and thanks for your help in advance!

     

    Sicnerely,

     

    Pullox

  • TheCalebG Profile Picture
    9 on at

    Bummer that no one has jumped in here on this yet. Amazon's API documentation is cryptic! I really appreciate your snapshots. I was having a hard time figuring out the passing of a signature to the requests in Postman. 

     

    I want to automate inventory management from our internal ERP database and expand on reporting with PowerBI. 

    Did you get any further on this @Pullox ??

  • Pullox Profile Picture
    47 on at

    @TheCalebG , we did get further but ended up using Amazon Web Services (AWS) SDK for Python to call the Amazon Simple Queue Service (Amazon SQS) aka Boto3, this function was added to azure cloud which then completes the following steps:

    1. Creates a canonical request
    2. Creates String to sign
    3. Calculates the signature
    4. Adds the signature to the HTTP request
    5. Sends the HTTP request

    Hope this helps, we are currently in the process of implementing this to a Power Automate flow, I'll gladly share the results once it is completed.

     

     

     

  • ctpmthh Profile Picture
    47 on at

    @Pullox , Thanks you share your development !

    You replaced this flow ( where you creating request, calculates signature... ) with function in Azure ?

    Thanks !

  • MJ646 Profile Picture
    5 on at

    @Pullox Would you be able to share more direction on how you got this sorted out. 

    Any help would be appreciated.

     

  • Community Power Platform Member Profile Picture
    on at

    @Pullox Could you share how the final solution turned out? I'm having the same difficulty generating this signature.

  • tech-44 Profile Picture
    39 on at

    AWS Signature using HTTP Action makes it easy to sign actions taken by an AWS instance or subscription. It provides a secure way to sign and manage Amazon Web Services actions.

  • Pullox Profile Picture
    47 on at

    Hello @annie23

     

    Thanks for jumping into the topic, can you please specify how you deal with the authentication as it was a challenge for me. Thanks in advance!

  • Community Power Platform Member Profile Picture
    on at

    Could you send an example of how this authentication was performed?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard