### Configure Healthchecks.io Provider and Resource Source: https://registry.terraform.io/providers/kristofferahl/healthchecksio/latest/docs Initializes the provider with an API key and defines a health check resource with scheduling and tagging. ```hcl provider "healthchecksio" { api_key = var.healthchecksio_api_key version = "~> 2.1.0" } variable "healthchecksio_api_key" { type = string description = "API Key. To keep secrets out of code first set environment variable TF_VAR_healthchecksio_api_key" } resource "healthchecksio_check" "test" { name = "test-check" desc = "A description for the check" tags = [ "go", "gophers", "unite", ] grace = 120 # in seconds schedule = "0,30 2 * * *" timezone = "Asia/Tokyo" } output "ping_url" { value = healthchecksio_check.test.ping_url } ``` -------------------------------- ### provider "healthchecksio" Source: https://registry.terraform.io/providers/kristofferahl/healthchecksio/latest/docs Configures the healthchecksio provider with the required API key. ```APIDOC ## provider "healthchecksio" ### Description Configures the connection to the Healthchecks.io API. ### Arguments - **api_key** (string) - Required - The healthchecks.io API Key. Can also be set via HEALTHCHECKSIO_API_KEY environment variable. - **api_url** (string) - Optional - The healthchecks.io API URL. Can also be set via HEALTHCHECKSIO_API_URL environment variable. ``` -------------------------------- ### resource "healthchecksio_check" Source: https://registry.terraform.io/providers/kristofferahl/healthchecksio/latest/docs Defines a health check resource within Healthchecks.io. ```APIDOC ## resource "healthchecksio_check" ### Description Manages a check resource on Healthchecks.io. ### Attributes - **name** (string) - The name of the check. - **desc** (string) - A description for the check. - **tags** (list) - A list of tags associated with the check. - **grace** (number) - The grace period in seconds. - **schedule** (string) - The cron schedule for the check. - **timezone** (string) - The timezone for the schedule. ### Outputs - **ping_url** (string) - The URL to ping for this check. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.