This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5a1c83a
Showing
5 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/vendor/*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}"] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
}, | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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{}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |