#Rest API - Regional or Edge Optimised?

1 messages · Page 1 of 1 (latest)

keen peak
#

Quick question; I am working on Chunk 2 Goal 2 in the AWS version of the challenge and need to put a Rest API route in front of my Lambda function. As my website is distributed through Cloudfront should I use Edge Optimised as the API endpoint type or a Regional endpoint type? Any advice appreciated

keen peak
#

I have set up an Edge Optimised API which passes testing in the console but am getting a 403 forbidden error from Postman. I am now thinking about creating a new cache behaviour in my distribution to route to my invoke API endpoint. I have set different behaviours in Cloudfront before to route to different sub-domains for my domain so this seemed easier than creating a separate distribution for my API even though the former is meant to be the less advanced approach. Not sure if this is the way to go or just another deep learning rabbit hole! I am using ChatGPT, Gemini and AWS documentation to try to help figure this stuff out; I am using these AI tools as judiciously as I am able of course