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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠