Health Checks to AWS API Gateway fail when API keys enabled (x-api-key)

0

Route 53 Health Checks are impossible to fully enable to AWS API Gateway when the api on the gateway has API keys enabled. Why? Because the request to the gateway must send the "x-api-key" header with a known value.

To my knowledge, at best you can configure an HTTP (not HTTPS) health check to the path desired. This request will be responded with a 301 redirect. The 301 is accepted as "healthy" by the default rules of a Route 53 Health Check.

If you were to configure an HTTPS health check, there would be no 301 redirect. Instead you would immediately receive a 403 Forbidden. This would fail the health check.

質問済み 7年前1339ビュー
1回答
0

Hi DalePh,

Thanks for your feedback. Yes, unfortunately there is no way to pass in headers at this time. For now the workaround of using HTTP or TCP health check type is the only option.

thanks

回答済み 7年前
profile picture
エキスパート
レビュー済み 1ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ