Files
Infrastructure/terraform/outputs.tf
T

20 lines
612 B
Terraform

# Values other tooling and the operator need after apply.
output "server_ip" {
description = "Public IPv4 of server0."
value = hcloud_server.server0.ipv4_address
}
output "ssh_command" {
description = "Ready-to-paste SSH command for server0."
value = "ssh -i ${var.ssh_private_key_path} ${var.ssh_user}@${hcloud_server.server0.ipv4_address}"
}
output "proxy_url" {
description = "Public URL served by Caddy."
value = "https://${var.domain}"
}
# Kubeconfig stays on this machine and never enters Git. Add its path here once
# main.tf writes it, e.g. "${path.module}/kubeconfig".