StatusCakeDev / terraform-provider-statuscake

Terraform StatusCake provider
https://registry.terraform.io/providers/StatusCakeDev/statuscake/
Mozilla Public License 2.0
35 stars 55 forks source link

Domain Check #153

Closed jakefurlong closed 1 year ago

jakefurlong commented 1 year ago

I would really like to add domain checks/status to my current Terraform module for StatusCake. Something like..

resource "statuscake_domain_check" "example_com" {
  check_interval = 600
  user_agent     = "terraform managed domain check"

  contact_groups = [
    statuscake_contact_group.operations_team.id
  ]

  alert_config {
    alert_at = [7, 14, 21]

    on_reminder = true
    on_expiry   = true
  }

  monitored_resource {
    address = "https://www.example.com"
  }
}

output "example_com_domain_check_id" {
  value = statuscake_domain_check.example_com.id
}
tomasbasham commented 1 year ago

Thanks @jakefurlong for the suggestion. However domain monitoring is not a feature offered by the StatusCake API, so cannot be included in the provider. I will however forward this suggestion to the appropriate team.