orchestration.clouds/ahoskingit/terraform/dns_hivebytes.tf

16 lines
366 B
Terraform
Raw Normal View History

2017-01-31 07:51:16 +00:00
#Terraform and its management of DNS in route53
#Setup the domain in route53
resource "aws_route53_zone" "hivebytes" {
name = "hivebytes.com"
}
#Route53 DNS entry
resource "aws_route53_record" "www_hivebytes" {
zone_id = "${aws_route53_zone.hivebytes.zone_id}"
name = "www.hivebytes.com"
type = "A"
ttl = "5"
records = ["${var.home_ip}"]
}