Skip to content

thousandeyes/terraform-provider-thousandeyes

Repository files navigation

Terraform thousandeyes Provider

Maintainers

This provider plugin is community maintained

Requirements

  • Terraform 0.10.x
  • Go 1.13 (to build the provider plugin)

Building The Provider

Clone repository to: $GOPATH/src/github.com/william20111/terraform-provider-thousandeyes

$ git clone git@github.com:william20111/terraform-provider-thousandeyes $GOPATH/src/github.com/william20111/terraform-provider-thousandeyes

Enter the provider directory and build the provider

$ cd $GOPATH/src/github.com/william20111/terraform-provider-thousandeyes
$ make build

Using the provider

The provider is now on the terraform registry to pull it as a dependency do the following and run terraform init

terraform {
  required_providers {
    thousandeyes = {
      source = "william20111/thousandeyes"
      version = "0.3.3"
    }
  }
}

If you're building the provider, follow the instructions to install it as a plugin. After placing it into your plugins directory, run terraform init to initialize it.

Setting up provider

provider "thousandeyes" {
  token = "xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx"
}

HTTP Test

data "thousandeyes_agent" "test_agent" {
  name  = "na-sjc-2-te [VS01]"
}

resource "thousandeyes_http_server" "google_http_test" {
  name = "google test"
  interval = 120
  url = "https://google.com"
  agents {
      agent_id = data.thousandeyes_agent.test_agent.agent_id
  }
  agents {

      agent_id = 12345
  }
}

Agent to Server

data "thousandeyes_agent" "test_agent_example" {
  name  = "na-sjc-2-te [VS01]"
}

resource "thousandeyes_agent_to_server" "agent_test_example" {
  name = "my agent test"
  interval = 120
  server = "8.8.8.8"
  agents {
      agent_id = data.thousandeyes_agent.test_agent_example.agent_id
  }

}

Supported tests right now:

  • http-server
  • page-load
  • web-transactions
  • agent-to-server
  • agent-to-agent
  • bgp
  • transactions
  • ftp-server
  • dns-trace
  • dns-server
  • dns-dnssec
  • dnsp-domain
  • dnsp-server
  • sip-server
  • voice (RTP Stream)
  • voice-call