From 7fa42d0e9a653dc952ebb4bc85f7757cbbb6e48e Mon Sep 17 00:00:00 2001 From: "Jorge E. Gamboa G." Date: Tue, 16 Jan 2024 11:43:55 +0100 Subject: [PATCH] Changing names --- gcp/sa/main.tf | 2 +- gcp/sa/variables.tf | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) 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" {