简体   繁体   English

us-east-1和us-east-2中的AWS API网关高可用性设置

[英]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/

What we did 我们做了什么

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.

相关问题 跨 AWS 区域迁移:us-east-1 到 us-east-2 - Moving Across AWS Regions: us-east-1 to us-east-2 Python Boto3 在 us-east-1 和 us-east-2 中存储桶的 AWS S3 预签名 url 响应存在差异 - Python Boto3 there is a difference in AWS S3 presign url response for bucket in us-east-1 and us-east-2 如何在us-east-1之外将HTTPS API网关和应用程序负载均衡器结合使用? - How do I combine AWS API Gateway and Application Load Balancer for HTTPS outside of us-east-1? 使用来自另一个帐户(us-east-1)的密钥加密 sqs 队列(us-east-2)并使用 lambda 访问它 - 面临错误 - Encrypting an sqs queue(us-east-2) using a key from another account(us-east-1) and access it using lambda - facing error 在us-east-2区域的AWS控制台中找不到“删除备份”选项 - “Delete Backup” Option is not found in AWS Console in us-east-2 region 在us-east-2中将DynamoDB导出到S3 AWS Data Pipeline - Export DynamoDB to S3 AWS Data Pipeline in us-east-2 aws ec2 us-east-2是无效的区域选择 - aws ec2 us-east-2 is an invalid region choice 默认情况下,AWS GetSignedUrl 使用 us-east-1 区域生成错误的 url - AWS GetSignedUrl generates wrong url with us-east-1 region by default AWS CloudFront 为 us-east-1 以外的区域返回 503 - AWS CloudFront returns 503 for regions other than us-east-1 AWS 在 us-east-1 之外使用 CloudFront 和 HTTPS - AWS Using CloudFront and HTTPS outside us-east-1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM