Skip to content

Commit

Permalink
Merge pull request #15 from tcarrondo/upgrade-to-tf13
Browse files Browse the repository at this point in the history
Upgrade to tf13
  • Loading branch information
tcarrondo authored Jan 23, 2021
2 parents 4ac002e + d414163 commit 257751f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
output "domain" {
value = "${var.domain}"
value = var.domain
}

output "ns" {
value = "${cloudflare_zone.domain.0.name_servers}"
value = cloudflare_zone.domain.0.name_servers
}

output "zone_id" {
Expand Down
8 changes: 7 additions & 1 deletion terraform.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
terraform {
required_version = "~> 0.12"
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "2.17.0"
}
}
required_version = "~> 0.13"
}
12 changes: 6 additions & 6 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# Zone settings
variable "domain" {}
variable domain {}

variable "zone_on" {
variable zone_on {
default = true
}

variable "plan" {
variable plan {
default = "free"
}

# Naked A record
variable "ipv4" {
variable ipv4 {
type = list(string)
default = []
}

# Naked AAAA record
variable "ipv6" {
variable ipv6 {
type = list(string)
default = []
}

# Other A, CNAME, MX, TXT records
variable "records" {
variable records {
default = {}
}

0 comments on commit 257751f

Please sign in to comment.