[英]AWS API gateway High Availability setup in us-east-1 and us-east-2
I want to setup API gateway services in two regions for HA. 我想在两个区域中为HA设置API网关服务。 The primary is in east1.
小学在东部1。 On health check failure it sould route to east 2.
在进行健康检查失败时,它获得了通往东部2的路线。
Followed this article (below) to setup the same. 按照本文(如下)进行设置。
https://aws.amazon.com/blogs/compute/building-a-multi-region-serverless-application-with-amazon-api-gateway-and-aws-lambda/ https://aws.amazon.com/blogs/compute/building-a-multi-region-serverless-application-with-amazon-api-gateway-and-aws-lambda/
1) setup my api services in both east 1 & east 2 2) both apis are created as regional(not cloud front) 3) created two certificates in each region with single custom domain name say api-ha-example.com. 1)在East 1和East 2都设置我的api服务2)两个api都创建为区域性(不是云前端)3)在每个区域中使用单个自定义域名创建两个证书,例如api-ha-example.com。 Mapped to with each of its reginal certificate(ACM) 4) The custom domains are created in each region 5) two cname records exsits now in R53 with same name "api-ha-example.com" and, value of each regional API end point.
映射到其每个区域证书(ACM)4)在每个区域中创建自定义域5)R53中现在存在两个cname记录,它们具有相同的名称“ api-ha-example.com”,并且每个区域API的值结尾点。 Show here.
在这里显示。
1)api-ha-example.com ---> https://xxxxx.execute-api.us-east-1.amazonaws.com/initdev ----> Primary
2)api-ha-example.com ---> https://xxxxx.execute-api.us-east-2.amazonaws.com/initdev ----> secondary
Health check is set to 200 status for primary for now 暂时将主要用户的健康检查设置为200状态
The problem ----------- I am able to hit the indivisual API enpoints directly. 问题-----------我能够直接打入Indivisual API。 But when i hit with the domain name https://api-ha-example.com/ I dont get anything.
但是,当我用域名https://api-ha-example.com/击中时,我什么也没得到。 site cant be reached.
无法到达该站点。 ping test says, cant reolve the domain to server.Anything missing in my settings?
ping测试说,无法将域解析到服务器。我的设置中缺少任何内容吗? Followed the steps as per blog
按照博客的步骤进行
https://aws.amazon.com/blogs/compute/building-a-multi-region-serverless-application-with-amazon-api-gateway-and-aws-lambda/
Anyone faced this issue? 有人遇到这个问题吗?
You have configured this in DNS: 您已经在DNS中进行了配置:
api-ha-example.com CNAME https://xxxxx.execute-api.us-east-1.amazonaws.com/initdev ;; primary
api-ha-example.com CNAME https://xxxxx.execute-api.us-east-2.amazonaws.com/initdev ;; secondary
DNS CNAME records are hostnames, only -- they have no support for either schemes or paths, so the https://
at the beginning and /initdev
at the end of the CNAME records need to be removed. DNS CNAME记录仅是主机名,它们不支持方案或路径,因此需要删除CNAME记录开头的
https://
和结尾的/initdev
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.