I’m trying to call an API GW v2 from a Lambda, but...
# sst
a
I’m trying to call an API GW v2 from a Lambda, but keep getting 403. The GW doesn’t use any type of authentication. I can hit this gateway from Postman just fine, but once the Lambda hits it, it returns 403… Does anybody have an example of Lambda hitting API GW endpoint? The endpoint that I’m hitting looks like this:
Copy code
<https://xxxxx.execute-api.ap-southeast-1.amazonaws.com/xxxx/>
Thanks.
Well, apparently it’s a configuration issue from the VPC! https://aws.amazon.com/premiumsupport/knowledge-center/api-gateway-vpc-connections/
f
Oh interesting! Didn’t know that.
a
Yeah VPC is hard.
Is driving me crazy.