Skip to content

Commit fd085a3

Browse files
committed
feat(composer_net): can define composer sa name
1 parent f81c44c commit fd085a3

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

modules/composer_net/iam.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ Assign the Composer Worker (composer.worker) role.
3838
Assign the Service Account User (iam.serviceAccountUser) role
3939
***/
4040
resource "google_service_account" "composer_sa" {
41-
account_id = "composer-sa"
42-
display_name = "composer-sa"
41+
account_id = var.composer_sa_name
42+
display_name = var.composer_sa_name
4343
project = var.service_project_id
4444
}
4545

modules/composer_net/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,9 @@ variable "dns_zone_name" {
7777
type = string
7878
default = "composer-google-cloud-dns"
7979
}
80+
81+
variable "composer_sa_name" {
82+
description = "Service Account name to be used for running Cloud Composer Environment."
83+
type = string
84+
default = "composer-sa"
85+
}

0 commit comments

Comments
 (0)