diff --git a/gcp/sa/main.tf b/gcp/sa/main.tf index cfce5392..4e0798ca 100644 --- a/gcp/sa/main.tf +++ b/gcp/sa/main.tf @@ -1,6 +1,6 @@ resource "google_service_account" "this" { account_id = var.account_id - display_name = var.name + display_name = "${project_name}-sa" project = var.project_id } diff --git a/gcp/sa/variables.tf b/gcp/sa/variables.tf index 304f0bd7..95bdba4c 100644 --- a/gcp/sa/variables.tf +++ b/gcp/sa/variables.tf @@ -1,8 +1,3 @@ -variable "name" { - description = "Name of the service account" - type = string -} - variable "account_id" { description = "The ID of the account for the service account" type = string @@ -22,7 +17,6 @@ variable "create_project" { variable "project_name" { description = "The displayed name of the project" type = string - default = "" } variable "project_id" {