Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions modules/gcp/velero/main.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Create the velero backups bucket
resource "google_storage_bucket" "backups" {
project = var.backup_project
name = var.backups_bucket_name
location = var.backups_bucket_location
project = var.backup_project
name = var.backups_bucket_name
location = var.backups_bucket_location
uniform_bucket_level_access = var.backups_bucket_uniform_level_access
soft_delete_policy {
retention_duration_seconds = try(var.soft_delete_policy, 0)
retention_duration_seconds = try(var.soft_delete_policy, 0)
}
}

Expand Down
6 changes: 6 additions & 0 deletions modules/gcp/velero/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@ variable "soft_delete_policy" {
description = "The soft delete policy to use when deleting the bucket"
type = number
}

variable "backups_bucket_uniform_level_access" {
description = "Whether to enable uniform bucket-level access for the backups bucket."
type = bool
default = true
}
Loading