Created
February 11, 2020 21:28
-
-
Save veverkap/4a6565904cf29f24ac2b1e901e2303ef to your computer and use it in GitHub Desktop.
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
terraform { | |
backend "remote" { | |
hostname = var.tfc_hostname | |
organization = var.tfc_organization | |
workspaces { | |
name = var.tfc_workspace | |
} | |
} | |
} | |
provider "cloudflare" { | |
version = "~> 2.0" | |
email = var.cloudflare_email | |
api_key = var.cloudflare_api_key | |
} | |
resource "cloudflare_zone" "veverkadotnet" { | |
zone = "veverka.net" | |
} | |
resource "cloudflare_record" "unifi" { | |
zone_id = cloudflare_zone.veverkadotnet.id | |
name = "unifi" | |
value = "192.168.1.6" | |
type = "A" | |
proxied = false | |
ttl = 120 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment