Cannot create API Gateway v2 in multiple regions with Route 53 latency-based routing

0

I want to create a global service comprised of API Gateway v2 (a.k.a. HTTP APIs) in multiple AWS regions with Route 53 latency-based routing handling traffic distribution for clients around the world. This will require each of the HTTP APIs to have the same custom domain configured. The HTTP APIs are configured as regional APIs.

However, when I attempt to configure the custom domain in a second region, I'm presented with this error:

Error: error creating API Gateway v2 domain name (redacted-my-domain-name.com): BadRequestException: The domain name you provided already exists.

This architecture works as expected if I use API Gateway v1 (a.k.a. REST APIs). Thus, I think this is a regression in v2.

Is this supposed to work?

  • Further experimentation shows that I can produce this same error by attempting to create the same custom domain in a second AWS account in the same region.

已提問 2 年前檢視次數 159 次
沒有答案

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

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

回答問題指南