Health Checks to AWS API Gateway fail when API keys enabled (x-api-key)
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.
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
Relevant questions
Private Route 53 to API Gateway
Accepted Answerasked 7 months agoClient API throttling in API Gateway
Accepted Answerasked 2 years agoHow to Helth Check Rest IAM Certificated API
asked 5 months agoWill Route 53-with-Failover Based on CloudWatch Work With A Private API-Gateway REST-API?
asked 6 months agoHealth Checks to AWS API Gateway fail when API keys enabled (x-api-key)
asked 5 years agoClient API Throttling in API Gateway
Accepted Answerasked 2 years agoProtecting AWS API Gateway From 3rd Party Only
asked 3 months agoRoute 53 Alias To API Gateway Not Routing Traffic
asked 2 years ago{"message":"forbidden"} when accessing private API Gateway
asked 2 years agoLambda Authorizer with API Key enabled on API Gateway
asked 3 months ago