The Sematext provider is used to interact with resources supplied by Sematext Cloud.
terraform {
required_providers {
sematext = {
source = "sematext/sematext"
version = ">=0.1.3"
}
}
}
provider "sematext" {
sematext_region = "US"
}
resource "sematext_monitor_nodejs" "mymonitor" {
name = "Node.js Monitor Example"
billing_plan_id = 6
}
The following arguments are supported:
sematext_region
- (Required) desired Sematext Cloud Region "US" or "EU";
There are two authentication tokens
- Sematext Cloud API access token - available from your account;
- Sematext Cloud App access token - retrieved on resource creation - refer to examples on how to access this inside your Terrform scripting.
The following environment variables are required:
- SEMATEXT_REGION="US"
- SEMATEXT_API_KEY="<Sematext-Cloud-Token>"
If working with AWS Cloudwatch the following environment vars should be set:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_REGION
Refer to docs/resources for guidance on individual resources.