Skip to content

Commit

Permalink
feat: Add impersonate_service_account to shared_vpc module to pass to…
Browse files Browse the repository at this point in the history
… core_project_factory (#477)
  • Loading branch information
davidholsgrove authored Oct 11, 2020
1 parent 05d1465 commit e9f0c8f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/shared_vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ module "project-factory" {
usage_bucket_prefix = var.usage_bucket_prefix
bucket_versioning = var.bucket_versioning
credentials_path = var.credentials_path
impersonate_service_account = var.impersonate_service_account
shared_vpc_subnets = var.shared_vpc_subnets
labels = var.labels
bucket_project = var.bucket_project
Expand Down
6 changes: 6 additions & 0 deletions modules/shared_vpc/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ variable "credentials_path" {
default = ""
}

variable "impersonate_service_account" {
description = "An optional service account to impersonate. This cannot be used with credentials_path. If this service account is not specified and credentials_path is absent, the module will use Application Default Credentials."
type = string
default = ""
}

variable "shared_vpc_subnets" {
description = "List of subnets fully qualified subnet IDs (ie. projects/$project_id/regions/$region/subnetworks/$subnet_id)"
type = list(string)
Expand Down

0 comments on commit e9f0c8f

Please sign in to comment.