Terraform added to the project, alongside a README

This commit is contained in:
Kat Inskip 2024-01-14 13:33:14 -08:00
parent bea9f708c7
commit 160f2aad20
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
15 changed files with 270 additions and 5 deletions

21
tf/cloudflare_zones.tf Normal file
View file

@ -0,0 +1,21 @@
variable "bypass_cloudflare" {
type = bool
default = false
}
variable "cloudflare_plan" {
type = string
default = "free"
}
resource "cloudflare_zone" "gensokyo-zone_zone" {
account_id = var.cloudflare_account_id
zone = "gensokyo.zone"
paused = var.bypass_cloudflare
plan = var.cloudflare_plan
type = "full"
}
output "gensokyo-zone_zone_id" {
value = cloudflare_zone.gensokyo-zone_zone.id
}