Skip to content

Commit

Permalink
Merge pull request #4 from siddharth1715/ROVERS/account_id-flag
Browse files Browse the repository at this point in the history
Account-ID override with flag
  • Loading branch information
prashy6191 authored Jan 17, 2024
2 parents 5f270bc + 89b9fea commit 7913287
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ locals {
}

resource "google_service_account" "service_account" {
account_id = local.full_account_id
account_id = var.account_id != "" ? var.account_id : local.full_account_id
display_name = local.full_display_name
description = var.description
}
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,9 @@ variable "roles" {
type = list(string)
default = []
}

variable "account_id" {
description = "The account id that is used to generate the service account email address and a stable unique id. Must be 6-30 characters long, and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])."
type = string
default = ""
}

0 comments on commit 7913287

Please sign in to comment.