Invoke API Gateway with IAM Auth request signing #180
Labels
feature-request
A feature should be added or improved.
module/powershell-cmdlets
p2
This is a standard priority issue
queued
I'd like a way to call a API Gateway method/resource that has IAM Auth enabled. This requires signing the request in the AWS Signature V4 process, which is very cumbersome.
This similar request for a .NET method looks unfulfilled.
Describe the Feature
API Gateway is a great solution for all REST clients, including PowerShell
Invoke-RestMethod
. However if we'd like to enable AWS_IAM auth on a method/resource, I'm not aware of a realistic way to use PowerShell as a client.Is your Feature Request related to a problem?
No
Proposed Solution
I see two directions we could go.
Invoke-RestMethod
.Invoke-RestMethod
, but accepts AWS credentials/profile/etc and will do the signing for you.Invoke-AG2RestMethod
?Describe alternatives you've considered
I've spent a few hours trying to write my own signer method, but it is, as previously mentioned, very cumbersome.
Additional Context
API Gateway and Lambda are incredibly useful for providing simple REST interfaces. IAM auth is something already widely adopted for AWS reasons, and thus is the most convenient authorizer without having to get into Cognito, auth tokens, or other methods.
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: