Skip to content

Commit

Permalink
zone gschmarri
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzo12 committed Oct 18, 2024
1 parent b6e7652 commit 88704e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scopes/ssh-bastion/00_ssh_bastion.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ data "google_project" "project" {
project_id = var.project_id
}

data "google_compute_zones" "available" {
project = data.google_project.project.project_id
}

data "google_compute_network" "gke_vpc" {
name = var.vpc_name
project = data.google_project.project.project_id
Expand All @@ -15,7 +19,7 @@ data "google_compute_subnetwork" "master_subnet" {
resource "google_compute_instance" "bastion_host" {
name = "bastion-host"
machine_type = "n1-standard-1"
#zone = "${var.gcp_region}-a"
zone = data.google_compute_zones.available.names[0]

boot_disk {
initialize_params {
Expand Down

0 comments on commit 88704e9

Please sign in to comment.