CodexBloom - Programming Q&A Platform

Terraform how to to manage AWS Route 53 health checks due to unrecognized values

👀 Views: 79 đŸ’Ŧ Answers: 1 📅 Created: 2025-06-06
terraform aws route53 HCL

I can't seem to get Hey everyone, I'm running into an issue that's driving me crazy... I'm having trouble creating and managing Route 53 health checks with Terraform..... I've set up my `aws_route53_health_check` resource, but I keep getting the following behavior message during the `terraform apply` step: `behavior: InvalidParameter: The value of the 'HealthCheckConfig' parameter is invalid. Please refer to the API documentation for more details.` Here's the relevant part of my Terraform configuration: ```hcl resource "aws_route53_health_check" "example" { fqdn = "example.com" type = "HTTP" resource_path = "/health" request_interval = 30 failure_threshold = 3 health_threshold = 2 port = 80 } ``` I've double-checked the parameters based on the [AWS documentation](https://docs.aws.amazon.com/Route53/latest/APIReference/API_HealthCheckConfig.html) and everything seems to be in order. I've tried changing the `type` to `HTTPS` and adjusting the `resource_path`, but I still encounter the same behavior. Additionally, I verified that `example.com` is publicly accessible and responds correctly to HTTP requests. I'm using Terraform version 1.3.0 and the AWS provider version 4.0.0. Has anyone else faced this scenario, or can someone point out what might be wrong here? Thanks in advance! I'm on Windows 10 using the latest version of Hcl. Any feedback is welcome! Any examples would be super helpful. I'd really appreciate any guidance on this. The project is a application built with Hcl. Has anyone else encountered this?