diff --git a/backend.tf b/backend.tf.old similarity index 100% rename from backend.tf rename to backend.tf.old diff --git a/provider.tf b/provider.tf index fa866ee..89f26d4 100644 --- a/provider.tf +++ b/provider.tf @@ -2,17 +2,17 @@ terraform { required_providers { cloudflare = { source = "cloudflare/cloudflare" - version = "~> 3.0" + version = "~> 5" } } required_version = ">= 1.7.5" } provider "cloudflare" { - #email = "${var.cloudflare_email}" -# token = "${var.cloudflare_token}" + email = "${var.cloudflare_email}" + api_token = "${var.cloudflare_api_token}" - email = "thedjinhn@gmail.com" - token = "EMVLdieKXA6X-ifx0tW0ELNQGde5XrJ3D8T-qcEY" - zone = "tips-of-mine.com" +# email = "thedjinhn@gmail.com" +# api_token = "EMVLdieKXA6X-ifx0tW0ELNQGde5XrJ3D8T-qcEY" +# zone = "tips-of-mine.com" } \ No newline at end of file diff --git a/variables.tf b/variables.tf index 3cc4076..6fd546a 100644 --- a/variables.tf +++ b/variables.tf @@ -1,19 +1,23 @@ variable "cloudflare_email" { description = "The email associated with the account. This can also be specified with the CLOUDFLARE_EMAIL shell environment variable." - default = "default" + type = string + default = "thedjinhn@gmail.com" } -variable "cloudflare_token" { +variable "cloudflare_api_token" { description = "The Cloudflare API token. This can also be specified with the CLOUDFLARE_TOKEN shell environment variable." - default = "default" + type = string + default = "EMVLdieKXA6X-ifx0tW0ELNQGde5XrJ3D8T-qcEY" } variable "cloudflare_zone" { description = "The DNS zone to add the record to." - default = "default" + type = string + default = "tips-of-mine.com" } variable "main_server" { description = "The main web server" - default = "127.0.0.1" + type = string + default = "82.66.77.254" }