AWS re:Post Knowledge Center Feedback Survey
Help us improve the AWS re:Post Knowledge Center by sharing your feedback in a brief survey. Your input can influence how we create and update our content to better support your AWS journey.
【以下的问题经过翻译处理】 你好, 我按照以下教程设置了以下配置:https://aws.amazon.com/blogs/compute/configuring-private-integrations-with-amazon-api-gateway-http-apis/
自定义域名(my.domain.com)-> HTTPAPI -> VPC链接 -> ALB -> ECS
VPCLink:
集成:
集成参数映射:
路由:“ANY / {proxy}”路由已添加并已连接集成。
部署:
Route53:域(my.domain.com)已作为A记录添加,指向自定义域
当我使用my.domain.com发出请求(如果使用自动生成的阶段URL),我始终收到503错误。我检查了ECS实例的运行情况和健康情况。
示例访问日志: { “requestId”:“Z6KDRhh0DoEEJhg =”, “userAgent”:“Mozilla / 5.0(Macintosh; Intel Mac OS X 10_15_7)AppleWebKit / 537.36(KHTML,like Gecko)Chrome / 105.0.0.0 Safari / 537.36”, “sourceIp”:“my_ip”, “requestTime”:“12 / Oct / 2022:20:29:34 +0000”, “requestTimeEpoch”:“1665606574”, “httpMethod”:“GET”, “path”:“/”, “status”:“503”, “protocol”:“HTTP / 1.1”, “responseLength”:“33”, “domainName”:“my.domain.com”, “integrationError”:“-”, “integrationDotError”:“-”, “integrationStatus”:“200”, “integrationDotStatus”:“-”, “integrationDotIntegrationStatus”:“200”, “integrationLatency”:“900
【以下的回答经过翻译处理】 我找到了503的错误原因。VPC link需要使用私有子网。如果我将公共子网与私有子网放在一起,大部分时间会返回503。将公共子网从VPC链接中移除后问题得到解决。
您未登录。 登录 发布回答。
一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。