From d90b2abb747471344cbf231d4197f0d52dbc281f Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Tue, 31 Jan 2017 17:15:02 -0500 Subject: [PATCH] Add site5 IP variable for reference --- ahoskingit/terraform/dns_ahosking.tf | 4 ++-- ahoskingit/terraform/dns_ahoskingit.tf | 2 +- ahoskingit/terraform/variables.tf | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) 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"