Commit 623d35ec authored by Mike Horwath's avatar Mike Horwath

adding conditional creation

parent efc279b7
......@@ -5,8 +5,10 @@
## usage example
## required variables
`domain` - domain to create a zone for
## optional variables
`create_zone` - if we need to actually create said zone
## outputs
* `id` - The zone ID.
......
variable "zone" {}
variable "create_zone" {
default = "false"
}
resource "cloudflare_zone" "dns_zone" {
zone = "${var.zone}"
count = "${var.create_zone == "true" ? 1 : 0}"
zone = "${var.zone}"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment