Skip to content

Commit

Permalink
Changing to name
Browse files Browse the repository at this point in the history
  • Loading branch information
jorge-cr-13 committed Jan 16, 2024
1 parent 7fa42d0 commit 2d00c96
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions gcp/sa/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "google_service_account" "this" {
account_id = var.account_id
display_name = "${project_name}-sa"
display_name = "${var.name}-sa"
project = var.project_id
}

Expand All @@ -16,7 +16,7 @@ resource "google_project_iam_binding" "role_bindings" {

resource "google_project" "this" {
count = var.create_project ? 1 : 0
name = var.project_name
name = var.name
project_id = var.project_id
folder_id = var.folder_id
}
10 changes: 5 additions & 5 deletions gcp/sa/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
variable "name" {
description = "The displayed name of the project"
type = string
}

variable "account_id" {
description = "The ID of the account for the service account"
type = string
Expand All @@ -14,11 +19,6 @@ variable "create_project" {
default = false
}

variable "project_name" {
description = "The displayed name of the project"
type = string
}

variable "project_id" {
description = "The ID of the project to be created"
type = string
Expand Down

0 comments on commit 2d00c96

Please sign in to comment.