The command is something like
aws route53 create-health-check --caller-reference $(date "+%Y%m%d%H%M%S") --health-check-config file:///tmp/create-health-check.json --profile cn
where /tmp/create-health-check.json --profile cn
is
{
"Type": "HTTPS_STR_MATCH",
"ResourcePath": "/production/photographers/search",
"FullyQualifiedDomainName": "api.fakebook.com",
"SearchString": "items",
"RequestInterval": 30,
"FailureThreshold": 3
}
response should be something like
{
"HealthCheck": {
"HealthCheckConfig": {
"FailureThreshold": 3,
"SearchString": "items",
"ResourcePath": "/production/photographers/search",
"EnableSNI": true,
"Inverted": false,
"MeasureLatency": false,
"RequestInterval": 30,
"Type": "HTTPS_STR_MATCH",
"Port": 443,
"FullyQualifiedDomainName": "api.fakebook.com"
},
"CallerReference": "10260012001114",
"HealthCheckVersion": 1,
"Id": "3e99ee29-5399-4854-b213-6736737b2baa"
},
"Location": "https://route53.amazonaws.com/2015-01-01/healthcheck/3e99ee29-5399-4854-b213-6736737b2baa"
}