resource "datadog_synthetics_test" "app_sythetics" { type = "api" subtype = "http" request_definition { method = "GET" url = var.url } assertion { type = "statusCode" operator = "is" target = "200" } locations = ["aws:${var.region}"] options_list { tick_every = 900 min_location_failed = 1 } name = "${var.app_name} API check" message = "Oh no! there seems to be a problem with ${var.app_name} please investigate" tags = ["cfa:${var.cfa_name}", "team:${var.team_name}" "app:${var.app_name}", "env:${var.stage}"] status = "live" }