Files
KarteekandVegard Hagen f457ce825f feat: create GCS bucket to store remote state
feat: Add gcloud tofu code to automatically create gcs buckets to use as remote backend. Also setup workload identity federation, and store it to infisical, to use it in github actions.

Signed-off-by: Karteek <[email protected]>

feat(tofu): modularise gcs-state

Create a Google Cloud Storage (GCS) bucket and store the state for doing it in the bucket itself

Signed-off-by: Vegard Hagen <[email protected]>

feat(wif): enable workload identify federation

Signed-off-by: Vegard Hagen <[email protected]>
2025-07-19 18:54:05 +02:00

25 lines
552 B
HCL

variable "encryption_passphrase" {
description = "Encryption passphrase for Tofu state encryption"
type = string
sensitive = true
}
variable "gcp" {
description = "Google Cloud project ID and region to deploy resources into"
type = object({
project_id = string,
region = string
})
}
variable "bucket_name" {
description = "Globally unique name for GCS bucket"
type = string
}
variable "state_prefix" {
description = "State prefix in GCS bucket"
type = string
default = "tofu/gcs-state"
}