Skip to content

Latest commit

 

History

History
61 lines (38 loc) · 1.4 KB

index.md

File metadata and controls

61 lines (38 loc) · 1.4 KB

  Terraform Provider For Sematext Cloud

Overview

The Sematext provider is used to interact with resources supplied by Sematext Cloud.

Example Usage

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
}

Argument Reference

The following arguments are supported:

  • sematext_region - (Required) desired Sematext Cloud Region "US" or "EU";

Authentication

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.

Enviropnment Variables

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

Resources

Refer to docs/resources for guidance on individual resources.