deploy-templates/aws/elastic_ip.tf (10 lines of code) (raw):
resource "aws_eip" "vault_ip" {
vpc = true
tags = merge(local.tags, {
"Name" = "platform-vault-${var.cluster_name}"
})
}
resource "aws_eip_association" "vault_public" {
instance_id = aws_instance.vault.id
allocation_id = aws_eip.vault_ip.id
}