A terraform provider for managing Site24x7 monitors which currently supports the following resources:
site24x7_action
(Site24x7 IT Automation API doc)site24x7_monitor_group
(Site24x7 Monitor Group API doc)site24x7_website_monitor
(Site24x7 Monitor API doc)
Clone the repository and build the provider:
git clone [email protected]:Bonial-International-GmbH/terraform-provider-site24x7
cd terraform-provider-site24x7
make install
This will build the terraform-provider-site24x7
binary and install it into
the $HOME/.terraform.d/plugins
directory.
You can run the tests via:
make test
For a full list of available make
targets, just run make
without arguments.
Refer to the _examples/ directory for a fully documented usage example.
This is a quick example of the provider configuration:
// Authentication API doc: https://www.site24x7.com/help/api/#authentication
provider "site24x7" {
// The client ID will be looked up in the SITE24X7_OAUTH2_CLIENT_ID
// environment variable if the attribute is empty or omitted.
oauth2_client_id = "${var.oauth2_client_id}"
// The client secret will be looked up in the SITE24X7_OAUTH2_CLIENT_SECRET
// environment variable if the attribute is empty or omitted.
oauth2_client_secret = "${var.oauth2_client_secret}"
// The refresh token will be looked up in the SITE24X7_OAUTH2_REFRESH_TOKEN
// environment variable if the attribute is empty or omitted.
oauth2_refresh_token = "${var.oauth2_refresh_token}"
// Specify the following configuration options if you want to use
// some other Site24x7 data center than the default US one. These
// must correspond to the data center from which you have obtained your
// OAuth client credentials and refresh token.
// Use European data center for API and tokens
api_base_url = "https://www.site24x7.eu/api"
token_url = "https://accounts.zoho.eu/oauth/v2/token"
}