Skip to content

Commit e228335

Browse files
authored
Revert "fix: update service_account_id output variable" (#491)
1 parent 7a7b769 commit e228335

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

modules/instance_template/main.tf

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@
1818
# Locals
1919
#########
2020

21-
data "google_service_account" "existing_sa" {
22-
provider = google-beta
23-
count = local.create_service_account == false ? 1 : 0
24-
account_id = google_compute_instance_template.tpl.service_account[0].email
25-
}
26-
2721
locals {
2822
source_image = var.source_image != "" ? var.source_image : "rocky-linux-9-optimized-gcp-v20240111"
2923
source_image_family = var.source_image_family != "" ? var.source_image_family : "rocky-linux-9-optimized-gcp"
@@ -86,11 +80,7 @@ locals {
8680
id = google_service_account.sa[0].account_id,
8781
email = google_service_account.sa[0].email,
8882
member = google_service_account.sa[0].member
89-
} : {
90-
id = data.google_service_account.existing_sa[0].account_id,
91-
email = data.google_service_account.existing_sa[0].email,
92-
member = data.google_service_account.existing_sa[0].member
93-
}
83+
} : {}
9484
}
9585

9686
# Service account

0 commit comments

Comments
 (0)