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
|
||||
}
|
||||
output "public_ip" {
|
||||
value = aws_instance.social.public_ip
|
||||
value = aws_eip.social.public_ip
|
||||
}
|
||||
output "nameservers" {
|
||||
#value = length(module.zone) == 0 ? "" : module.zone.0.route53_zone_name_servers
|
||||
|
|
|
@ -23,11 +23,11 @@ module "records" {
|
|||
name = ""
|
||||
type = "A"
|
||||
ttl = 600 # 10 minutes
|
||||
records = [ aws_instance.social.public_ip ]
|
||||
records = [ aws_eip.social.public_ip ]
|
||||
},
|
||||
]
|
||||
|
||||
depends_on = [module.zone]
|
||||
depends_on = [ module.zone ]
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue