GitXplorerGitXplorer
l

terraform-provider-uptimerobot

public
123 stars
85 forks
34 issues

Commits

List of commits on branch master.
Verified
c473457e5f35301b5bbe9c40284b314451810139

Merge pull request #97 from solarkennedy/sorted_monitor_alert_contact_ids

llouy committed 4 years ago
Verified
d64724a34d31df5c0118d72c3e5769a3e99e7e39

Merge pull request #94 from uppersource/master

llouy committed 4 years ago
Verified
6bf6e080c09b39f4b5bd3f2601bcbe772003f67f

Merge pull request #96 from piotrgiedziun/patch-1

llouy committed 4 years ago
Verified
c1599fb997e7d0e2c3ccbafaf0f149b32d8fa28a

Merge pull request #100 from achaussier/fix_docs

llouy committed 4 years ago
Unverified
09289e638bfe2a4fe598211cd0ed0cc4f0032f37

Fix documentation typo

iinvalid-email-address committed 4 years ago
Unverified
e230583cbe21648e2dbccba003e764d02dc6c844

Always sort alertContacts on monitors

ssolarkennedy committed 4 years ago

README

The README file for this repository.

Terraform UptimeRobot Provider

All Contributors Build Status

Getting started

To install this provider, check out the installation instructions on Terraform's registry page.

terraform {
  required_providers {
    uptimerobot = {
      source = "louy/uptimerobot"
      version = "0.5.1"
    }
  }
}

provider "uptimerobot" {
  api_key = "[YOUR MAIN API KEY]" # or pass via environment variable UPTIMEROBOT_API_KEY
}

data "uptimerobot_account" "account" {}

data "uptimerobot_alert_contact" "default_alert_contact" {
  friendly_name = data.uptimerobot_account.account.email
}

resource "uptimerobot_alert_contact" "slack" {
  friendly_name = "Slack Alert"
  type          = "slack"
  value         = "https://hooks.slack.com/services/XXXXXXX"
}

resource "uptimerobot_monitor" "main" {
  friendly_name = "My Monitor"
  type          = "http"
  url           = "http://example.com"
  # pro allows 60 seconds
  interval      = 300

  alert_contact {
    id = uptimerobot_alert_contact.slack.id
    # threshold  = 0  # pro only
    # recurrence = 0  # pro only
  }

  alert_contact {
    id = data.uptimerobot_alert_contact.default_alert_contact.id
  }
}

resource "uptimerobot_monitor" "custom_port" {
  url           = "doe.john.me"
  type          = "port"
  sub_type      = "custom"
  port          = 5678
  friendly_name = "Custom port"
}

resource "uptimerobot_status_page" "main" {
  friendly_name  = "My Status Page"
  custom_domain  = "status.example.com"
  password       = "WeAreAwsome"
  sort           = "down-up-paused"
  monitors       = [uptimerobot_monitor.main.id]
}

resource "aws_route53_record" {
  zone_id = "[MY ZONE ID]"
  type    = "CNAME"
  records = [uptimerobot_status_page.main.dns_address]
}

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Louay Alakkad

💻 🚧 ⚠️ 📖 🔧

Nham Le

💻

David Rubin

💻 🚧 ⚠️ 📖 🤔 💬

Johan Bloemberg

💻 ⚠️ 🤔 📖

Seb Patane

📦

YIFAN LI

💻 ⚠️

Nicolas Lamirault

📖 🐛 💻

Adam Dobrawy

📖

Clint Byrum

🐛

Tiago Carrondo

🐛

JB

🐛

Carlos Alexandro Becker

💻

Jan Jungnickel

💻

bd0zer

🐛

randrusiak

💻 🐛

Jason Rogena

💻 ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!