Workaround for terraform being goofy about instance public IPs
This commit is contained in:
parent
80309c2ae0
commit
a1a441f366
2 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@ output "instance_id" {
|
||||||
value = aws_instance.social.id
|
value = aws_instance.social.id
|
||||||
}
|
}
|
||||||
output "public_ip" {
|
output "public_ip" {
|
||||||
value = aws_instance.social.public_ip
|
value = aws_eip.social.public_ip
|
||||||
}
|
}
|
||||||
output "nameservers" {
|
output "nameservers" {
|
||||||
#value = length(module.zone) == 0 ? "" : module.zone.0.route53_zone_name_servers
|
#value = length(module.zone) == 0 ? "" : module.zone.0.route53_zone_name_servers
|
||||||
|
|
|
@ -23,7 +23,7 @@ module "records" {
|
||||||
name = ""
|
name = ""
|
||||||
type = "A"
|
type = "A"
|
||||||
ttl = 600 # 10 minutes
|
ttl = 600 # 10 minutes
|
||||||
records = [ aws_instance.social.public_ip ]
|
records = [ aws_eip.social.public_ip ]
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue