1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
0
Look at Proxy integrations. You need to define a greedy path using /{Proxy+}. This way you do not need to specify all routes in the API but rather specify one and let the Lambda function do the routing internally.
As an alternative you could create multiple routes and assign each one to a different function.
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 3 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
After I added
ANY
/{proxy+}
route, every request (including the root request/
) returns{"message":"Internal Server Error"}
.I tried both
/{proxy+}
and/{Proxy+}
.Is your target invoked? If so, maybe it returns a malformed answer.