mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
Terraform added to the project, alongside a README
This commit is contained in:
parent
bea9f708c7
commit
160f2aad20
15 changed files with 270 additions and 5 deletions
21
tf/cloudflare_zones.tf
Normal file
21
tf/cloudflare_zones.tf
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue