I add provisioner in eip resource, and then “terraform apply”, nothing has happened.
Is there something wrong?
resource “aws_eip” “eip” {
vpc = true
instance = aws_instance.cerberus.id
provisioner “local-exec” {
command = "echo ${aws_eip.eip.public_dns} >> /root/cerberus_public_dns.txt"
}
}