From f37519246a695ff28323f50fe2bcf200ab9345b7 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 22 Feb 2020 20:22:28 +0000 Subject: [PATCH] Setup cloudflare terraforming --- terraform/providers.tf | 5 +++++ terraform/theorangeonenet.tf | 3 +++ terraform/variables.tf | 1 + 3 files changed, 9 insertions(+) create mode 100644 terraform/theorangeonenet.tf diff --git a/terraform/providers.tf b/terraform/providers.tf index 2ffc58c..8ae5534 100644 --- a/terraform/providers.tf +++ b/terraform/providers.tf @@ -3,3 +3,8 @@ provider "vultr" { rate_limit = 700 retry_limit = 3 } + +provider "cloudflare" { + email = "hosting+cloudflare@theorangeone.net" + api_key = var.cloudflare_api_key +} diff --git a/terraform/theorangeonenet.tf b/terraform/theorangeonenet.tf new file mode 100644 index 0000000..1f5f323 --- /dev/null +++ b/terraform/theorangeonenet.tf @@ -0,0 +1,3 @@ +resource "cloudflare_zone" "theorangeonenet" { + zone = "theorangeone.net" +} diff --git a/terraform/variables.tf b/terraform/variables.tf index 273d694..9c64bfb 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -1 +1,2 @@ variable "vultr_api_key" {} +variable "cloudflare_api_key" {}