2025-12-03 15:53:46 +00:00
|
|
|
variable "project_id" {
|
|
|
|
|
type = string
|
2025-12-04 09:33:27 +01:00
|
|
|
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"
|
2025-12-03 15:53:46 +00:00
|
|
|
}
|
|
|
|
|
|
2025-12-04 09:33:27 +01:00
|
|
|
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"
|
|
|
|
|
}
|