Skip to content

Commit

Permalink
svelte-rich-text-terrafoerm a record
Browse files Browse the repository at this point in the history
  • Loading branch information
valiantlynx committed Mar 21, 2024
1 parent bc24128 commit 8e63179
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions terraform/modules/cloudflare-ddns/main.tf
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
resource "cloudflare_record" "ec2_dns_a" {
for_each = var.cloudflare_zone_ids
zone_id = each.value
name = each.key
name = "svelte-rich-text.${each.key}"
value = var.public_ip[0]
type = "A"
ttl = 1 // Auto
proxied = false
}

resource "cloudflare_record" "ec2_dns_cname" {
for_each = var.cloudflare_zone_ids
zone_id = each.value
name = "www.${each.key}"
value = each.key
type = "CNAME"
ttl = 1 // Auto
proxied = false
}
}

0 comments on commit 8e63179

Please sign in to comment.