Health check Lambda
check healthy server by Lambda function
Package used in project icap-client ( https://github.com/k8-proxy/icap-client )
operation first send request with pdf file to ICAP server
"icap://" + host" + port + service
read response from ICAP server if successfully return pdf file with string "Glasswall Processed" will be healthy server
**Requirement**
-
Package build
- GOOS=linux GOARCH=amd64 go build -o main
- zip main.zip main
- upload main.zip to Lambda Function code
on Lambda create configure test event
with
{
"host": "34.242.219.224"
}
host is the server you want to check health
return json exitcode 0 it's successful and healthy server
exitcode 1 it's failed and not healthy server