Complete the code to create a Route 53 health check that monitors an HTTP endpoint.
resource "aws_route53_health_check" "example" { fqdn = "example.com" type = "[1]" resource_path = "/health" failure_threshold = 3 }
The type must be set to HTTP to monitor an HTTP endpoint.
Complete the code to specify the IP address for a Route 53 health check.
resource "aws_route53_health_check" "example" { ip_address = "[1]" type = "TCP" port = 80 failure_threshold = 3 }
The ip_address must be a valid IPv4 address like 192.168.1.1.
Fix the error in the health check configuration to correctly monitor HTTPS with a string match.
resource "aws_route53_health_check" "example" { fqdn = "example.com" type = "[1]" resource_path = "/status" search_string = "Healthy" failure_threshold = 3 }
To monitor HTTPS with a string match, the type must be HTTPS_STR_MATCH.
Fill both blanks to create a health check that monitors an HTTP endpoint on port 8080 with a failure threshold of 5.
resource "aws_route53_health_check" "example" { fqdn = "example.com" type = "[1]" port = [2] failure_threshold = 5 }
The type should be HTTP and the port should be 8080 to monitor the correct endpoint.
Fill all three blanks to create a health check that monitors HTTPS on port 443, checks the path '/healthcheck', and uses a failure threshold of 4.
resource "aws_route53_health_check" "example" { fqdn = "example.com" type = "[1]" port = [2] resource_path = "[3]" failure_threshold = 4 }
The type is HTTPS, the port is 443, and the resource_path is /healthcheck to monitor the correct HTTPS endpoint.