diff --git a/ahoskingit/terraform/dns_ahosking.tf b/ahoskingit/terraform/dns_ahosking.tf index 70990b5..a3a0f34 100644 --- a/ahoskingit/terraform/dns_ahosking.tf +++ b/ahoskingit/terraform/dns_ahosking.tf @@ -10,7 +10,7 @@ resource "aws_route53_record" "ahosking" { name = "ahosking.com" type = "A" ttl = "5" - records = ["104.37.195.87"] + records = ["${var.site5_ip}"] } resource "aws_route53_record" "ahosking_wildcard" { @@ -18,7 +18,7 @@ resource "aws_route53_record" "ahosking_wildcard" { name = "*.ahosking.com" type = "A" ttl = "5" - records = ["104.37.195.87"] + records = ["${var.site5_ip}"] } resource "aws_route53_record" "ahosking_www" { diff --git a/ahoskingit/terraform/dns_ahoskingit.tf b/ahoskingit/terraform/dns_ahoskingit.tf index 88ba138..a08d859 100644 --- a/ahoskingit/terraform/dns_ahoskingit.tf +++ b/ahoskingit/terraform/dns_ahoskingit.tf @@ -10,7 +10,7 @@ resource "aws_route53_record" "ahoskingit" { name = "ahoskingit.com" type = "A" ttl = "5" - records = ["104.37.195.87"] + records = ["${var.site5_ip}"] } resource "aws_route53_record" "ahoskingit_www" { diff --git a/ahoskingit/terraform/variables.tf b/ahoskingit/terraform/variables.tf index d5baa0e..525df6b 100644 --- a/ahoskingit/terraform/variables.tf +++ b/ahoskingit/terraform/variables.tf @@ -10,6 +10,10 @@ variable "home_ip" { default = "174.114.190.249" } +variable "site5_ip" { + default = "104.37.195.87" +} + ## KFA IP variable "kfa_ip" { default = "76.9.203.226"