variable "monitis_api_key" {}
variable "monitis_secret_key" {}
provider "monitis" {
api_key = "${var.monitis_api_key}"
secret_key = "${var.monitis_secret_key}"
}
data "monitis_external_location" "us-est" {
name = "US-EST"
}
data "monitis_external_location" "us-wst" {
name = "US-WST"
}
resource "monitis_external_monitor" "www-example-com" {
name = "www.example.com"
tag = "Default"
location_ids = [
"${data.monitis_external_location.us-est.id}",
"${data.monitis_external_location.us-wst.id}"
]
url = "www.example.com"
type = "http"
interval = 15
}