SAM Deployment of HttpApi with a custom domain and Geolocation routing in route53

0

I am learning SAM and want to replicate an existing API Gateway app which is multi-region and uses Route53 Geolocation host records to control routing traffic to the correct region. The API is based off this article. https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-api-gateway.html

I have tried using the Domain property of the Serverless::HttpApi resource in my template, but the Route53 options do not appear to support the Geolocation routing option. https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-property-httpapi-route53configuration.html

I also tried creating a separate Route53::RecordSet, which allows me to create Geolocation records, but I can't seem to reference the alias URI of the Serverless::HttpApi resource.

This seems like a common setup and I assume there is a correct way to do it in SAM, but I have not been able to find it.

1 個回答
1
已接受的答案

Hi,

I would suggest to take a look github.com/aws-samples/serverless-patterns, specifically this

It helped me to better understand how you can use SAM on examples.

profile picture
專家
已回答 5 個月前
profile picture
專家
已審閱 2 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南