1 Answer
0
Accepted Answer
AWS CLI does not provide an option to get signed request. Since you're making a HTTPS call to API gateway, using IAM user permissions, you need to use SigV4 to add authentication information to the request.
More info - https://docs.aws.amazon.com/general/latest/gr/create-signed-request.html
This page explains the steps required to sign the request. I can think of two options - (1) try to generate the signature in power shell by following the steps described on the link above, or (2) Write a function in language you prefer using one of the code sample (links provided on this page) to generate the signature and use powershell to invoke the same and send request using invoke-webrequest.
answered 15 days ago
Relevant content
- asked 4 years ago
- Accepted Answerasked 3 years ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 3 months ago
Yea, kinda what I was trying to avoid. :)
I decided to create a lambda that will d/l the file and put it in s3 so my instance can download it from there using the AWS cli. Thanks for your suggestions.