Initial commit
This commit is contained in:
14
dns.tf
Normal file
14
dns.tf
Normal file
@@ -0,0 +1,14 @@
|
||||
#===============================================
|
||||
# Create A records to AWS
|
||||
#===============================================
|
||||
data "aws_route53_zone" "dns_zone" {
|
||||
name = "${var.dns_zone_name}"
|
||||
}
|
||||
|
||||
resource "aws_route53_record" "zabbix" {
|
||||
zone_id = "${data.aws_route53_zone.dns_zone.id}"
|
||||
name = "zabbix"
|
||||
type = "A"
|
||||
ttl = "300"
|
||||
records = ["${google_compute_instance.zabbix.network_interface.0.access_config.0.nat_ip}"]
|
||||
}
|
Reference in New Issue
Block a user