Created
July 2, 2022 01:37
-
-
Save lioneltchami/4e325a7b6fd14b121ed3ccab13e51235 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| output "ip" { | |
| value = google_compute_instance.bastion.network_interface.0.network_ip | |
| description = "The IP address of the Bastion instance." | |
| } | |
| output "ssh" { | |
| description = "GCloud ssh command to connect to the Bastion instance." | |
| value = "gcloud compute ssh ${google_compute_instance.bastion.name} --project ${var.project_id} --zone ${google_compute_instance.bastion.zone} -- -L8888:127.0.0.1:8888" | |
| } | |
| output "kubectl_command" { | |
| description = "kubectl command using the local proxy once the Bastion ssh command is running." | |
| value = "HTTPS_PROXY=localhost:8888 kubectl" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment