I use it in my integration tests to call my deployed lambda endpoints ✋
a
Adrián Mouly
08/15/2021, 11:39 PM
Nice.
Adrián Mouly
08/15/2021, 11:40 PM
@Michael Wolfenden so you used it only for testing?
Adrián Mouly
08/15/2021, 11:41 PM
Did you use it to call the lambda directly? or through API GW?
m
Michael Wolfenden
08/15/2021, 11:59 PM
I use it to call the lambda via api gateway (ie I create a cognito user in my tests and then sign the http request using the the cognito users credentials via aws4). The reason I only do this in my tests is that I'm using amplify in my frontend and it's API construct does the signing of the request for you