This commit is contained in:
gastonchenet
2025-12-04 09:33:27 +01:00
parent be0ad3ca53
commit cff1cab940
12 changed files with 276 additions and 128 deletions

View File

@@ -1,7 +1,26 @@
# iam/variables.tf
variable "project_id" {
description = "ID du projet GCP"
type = string
description = "GCP project id"
}
variable "sa_name" {
type = string
description = "Service account name (id)"
default = "terraform-sa"
}
variable "sa_display_name" {
type = string
description = "Service account display name"
default = "Terraform Service Account"
}
variable "roles" {
type = list(string)
default = [
"roles/compute.instanceAdmin.v1",
"roles/iam.serviceAccountUser",
"roles/iam.serviceAccountKeyAdmin",
]
description = "Liste des roles à attribuer au compte de service"
}