An AWS Lambda function which can proxy healthcheck requests to your internal services
Call the Lambda function endpoint and pass a url
query parameter with the value of the URL to your internal service.
curl https://example123.lambda-url.us-east-1.on.aws/?url=myservice.lan/healthcheck
The Lambda function will make an HTTP GET request to the url
provided and return the HTTP status code.
No request body or headers will be passed to the internal service. And no response body or headers from your internal service will be returned from the lambda.
You can (optionally) set the Terraform variables: expected_header_key
and expected_header_value
to require the header
to be present on every request. For example:
expected_header_key=X-MY-HEADER
expected_header_value=al1s9v8u210vn410vn