See full documentation on the Terraform Registry docs.
Usage
terraform {
required_providers {
monit24 = {
version = ">= 0.1.2"
source = "monit24/monit24"
}
}
}
provider "monit24" {}
resource "monit24_group" "example" {
name = "An example group"
}
resource "monit24_notification_address" "email" {
address = "notifications@example.com"
notification_channel_id = "email"
group_id = monit24_group.example.id
description = "An example notification email address"
}
resource "monit24_service" "test_https_service" {
type_id = "https"
name = "https example.com"
description = "An example https service"
address = "example.com"
group_id = monit24_group.example.id
}
See examples for in-depth usage.
Authentication
Fill the user
and password
directly in the provider (preferably via Terraform's variables).
provider "monit24" {
user = "username"
password = "topsecret"
}
Alternatively, provide MONIT24_USER
and MONIT24_PASSWORD
environment variables.
provider "monit24" {}
export MONIT24_USER=
export MONIT24_PASSWORD=
Contributing
See CONTRIBUTING.md