output "public_ip" {
  value = aws_eip.vm.public_ip
}

output "ssh_command" {
  value = "ssh ubuntu@${aws_eip.vm.public_ip}"
}

output "next_steps" {
  value = <<-EOT
    1. Point DNS A record for ${var.domain} -> ${aws_eip.vm.public_ip}
    2. SSH in and check `docker compose -f /srv/url-shortener/docker-compose.prod.yml ps`
    3. Smoke test: curl -fsS https://${var.domain}/healthz
  EOT
}
