Workaround for terraform being goofy about instance public IPs

This commit is contained in:
Erik Stambaugh 2024-01-31 06:35:32 -08:00
parent 80309c2ae0
commit a1a441f366
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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 ]
}