13 lines
419 B
HCL
13 lines
419 B
HCL
data "cloudflare_zone" "dns_zone" {
|
|
name = var.domain_name
|
|
}
|
|
|
|
resource "cloudflare_record" "instance_dns" {
|
|
zone_id = data.cloudflare_zone.dns_zone.id
|
|
name = join("-", ["stun", data.aws_region.current.name])
|
|
content = data.aws_network_interface.stun_server_interface.association[0].public_ip
|
|
type = "A"
|
|
proxied = true
|
|
depends_on = [data.aws_network_interface.stun_server_interface]
|
|
}
|