Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
louy committed May 29, 2018
0 parents commit 5a1c83a
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/vendor/*/
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Terraform UptimeRobot Provider

## Getting started

```tf
provider "uptime-robot" {
api_key = "[YOUR MAIN API KEY]"
}
resource "uptime_robot_monitor" "main" {
title = "My Monitor"
type = "http"
endpoint = "http://example.com"
frequency = 300
}
resource "uptime_robot_status_page" "main" {
title = "My Status Page"
custom_domain = "status.example.com"
password = "WeAreAwsome"
sort_monitors = "down-up-paused"
monitors = ["${resource.uptime_robot_monitor.main.id}"]
hide_logo = false # pro only
}
resource "aws_route53_record" {
zone_id = "[MY ZONE ID]"
type = "CNAME"
records = ["${resource.uptime_robot_status_page.main.id}"]
}
```
14 changes: 14 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package main

import (
"github.com/hashicorp/terraform/plugin"
"github.com/hashicorp/terraform/terraform"
)

func main() {
plugin.Serve(&plugin.ServeOpts{
ProviderFunc: func() terraform.ResourceProvider {
return Provider()
},
})
}
11 changes: 11 additions & 0 deletions provider.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package main

import (
"github.com/hashicorp/terraform/helper/schema"
)

func Provider() *schema.Provider {
return &schema.Provider{
ResourcesMap: map[string]*schema.Resource{},
}
}
25 changes: 25 additions & 0 deletions vendor/vendor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"comment": "",
"ignore": "test",
"package": [
{
"checksumSHA1": "JHxGzmxcIS8NyLX9pGhK5beIra4=",
"path": "github.com/hashicorp/terraform/helper/schema",
"revision": "170a1530d1ca815788a57dbe7afae209ce9fd3ac",
"revisionTime": "2018-05-24T22:32:19Z"
},
{
"checksumSHA1": "DqaoG++NXRCfvH/OloneLWrM+3k=",
"path": "github.com/hashicorp/terraform/plugin",
"revision": "170a1530d1ca815788a57dbe7afae209ce9fd3ac",
"revisionTime": "2018-05-24T22:32:19Z"
},
{
"checksumSHA1": "lHCKONqlaHsn5cEaYltad7dvRq8=",
"path": "github.com/hashicorp/terraform/terraform",
"revision": "170a1530d1ca815788a57dbe7afae209ce9fd3ac",
"revisionTime": "2018-05-24T22:32:19Z"
}
],
"rootPath": "github.com/louy/terraform-provider-uptime-robot"
}

0 comments on commit 5a1c83a

Please sign in to comment.