Skip to content

Commit 85e8486

Browse files
committed
limit compute IAM scope
and enable secure boot
1 parent 6d464de commit 85e8486

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

main.tf

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,17 @@ resource "google_compute_instance" "cloud-compose" {
149149

150150
service_account {
151151
email = google_service_account.cloud-compose.email
152-
scopes = ["cloud-platform"]
152+
scopes = [
153+
"https://www.googleapis.com/auth/logging.write",
154+
"https://www.googleapis.com/auth/monitoring.write",
155+
"https://www.googleapis.com/auth/devstorage.read_only",
156+
"https://www.googleapis.com/auth/iam",
157+
]
153158
}
154159

155160
shielded_instance_config {
156161
enable_integrity_monitoring = "true"
157-
enable_secure_boot = "false"
162+
enable_secure_boot = "true"
158163
enable_vtpm = "true"
159164
}
160165
}

0 commit comments

Comments
 (0)