Skip to content

Commit

Permalink
enable os patch runs nightly for bastion images (#1164)
Browse files Browse the repository at this point in the history
* enable os patch runs nightly for bastion images

Signed-off-by: Bob Callaway <[email protected]>

* fix fmt

Signed-off-by: Bob Callaway <[email protected]>

* switch to UTC

Signed-off-by: Bob Callaway <[email protected]>

---------

Signed-off-by: Bob Callaway <[email protected]>
  • Loading branch information
bobcallaway authored Jul 3, 2024
1 parent d8a097a commit 790d02d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions terraform/gcp/modules/bastion/bastion.tf
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,33 @@ resource "google_compute_instance" "bastion" {
depends_on = [google_project_service.service, google_kms_crypto_key_iam_binding.disk-key]
}

resource "google_os_config_patch_deployment" "patch" {
patch_deployment_id = "patch-deploy"

instance_filter {
instances = [google_compute_instance.bastion.id]
}

patch_config {
apt {
type = "DIST"
}
}

recurring_schedule {
time_zone {
id = "Etc/UTC"
}

time_of_day {
hours = 0
minutes = 0
seconds = 0
nanos = 0
}
}
}

// Grant tunnel access to the GA team
resource "google_project_iam_member" "ga_tunnel_accessor_verifier_member" {
project = var.project_id
Expand Down

0 comments on commit 790d02d

Please sign in to comment.