Skip to content

Commit

Permalink
fix: depend to A record
Browse files Browse the repository at this point in the history
  • Loading branch information
tosuke committed Nov 7, 2024
1 parent ec41bdb commit 296b2a0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions terraform/dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ resource "sakuracloud_dns_record" "root_record_ipv6" {
}

resource "sakuracloud_dns_record" "wildcard_record" {
dns_id = sakuracloud_dns.k8s_dns.id
ttl = 300
name = "*"
type = "CNAME"
value = "${sakuracloud_dns.k8s_dns.zone}."
depends_on = [sakuracloud_dns_record.root_record_ipv4]
dns_id = sakuracloud_dns.k8s_dns.id
ttl = 300
name = "*"
type = "CNAME"
value = "${sakuracloud_dns.k8s_dns.zone}."
}

0 comments on commit 296b2a0

Please sign in to comment.