terraform
This commit is contained in:
commit
33a12b643f
15 changed files with 1021 additions and 0 deletions
34
terraform/dns.tf
Normal file
34
terraform/dns.tf
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# Hetzner Cloud DNS Management
|
||||
# =================================
|
||||
#
|
||||
# DNS zones and records are now managed by Terraform.
|
||||
#
|
||||
# Existing Zones:
|
||||
# - asxp.io (ID: 61604) - 34 records
|
||||
# - czsk.it (ID: 61606) - 7 records
|
||||
# - childfr.ee (ID: 61605) - 13 records
|
||||
#
|
||||
# To manage DNS records:
|
||||
# Use the 'hcloud_record' resource in Terraform.
|
||||
#
|
||||
# Key records to update during migration:
|
||||
# - asxp.io: @, git, builds, upload, onitama, proxy, xmpp, turn, photos
|
||||
# - czsk.it: @
|
||||
# - childfr.ee: @
|
||||
|
||||
resource "hcloud_zone" "czsk_it" {
|
||||
name = "czsk.it"
|
||||
mode = "primary"
|
||||
labels = {
|
||||
managed_by = "terraform"
|
||||
}
|
||||
}
|
||||
|
||||
resource "hcloud_zone_rrset" "apex_a" {
|
||||
zone = hcloud_zone.czsk_it.name
|
||||
name = "test"
|
||||
type = "A"
|
||||
records = [
|
||||
{ value = "127.0.0.1", comment = "test" },
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue