Skip to content

Commit

Permalink
Update gcp-logging bucket to reflect current lifecycle rule
Browse files Browse the repository at this point in the history
  • Loading branch information
samsimpson1 committed Jul 11, 2024
1 parent b80dc29 commit 1e08b18
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions terraform/deployments/vpc/google_logging_bucket.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ data "google_project" "project" {}
resource "google_storage_bucket" "google_logging" {
name = "govuk-${var.govuk_environment}-gcp-logging"
location = "eu"
storage_class = "multi_regional"
storage_class = "MULTI_REGIONAL"

versioning {
enabled = true
Expand All @@ -15,15 +15,15 @@ resource "google_storage_bucket" "google_logging" {
}

condition {
age = 30
age = 30
with_state = "ARCHIVED"
}
}
}

resource "google_storage_bucket_acl" "google_logging" {
resource "google_storage_bucket_access_control" "google_logging" {
bucket = google_storage_bucket.google_logging.name

role_entity = [
"WRITER:group-cloud-storage-analytics@google.com",
]
role = "WRITER"
entity = "group-cloud-storage-analytics@google.com"
}

0 comments on commit 1e08b18

Please sign in to comment.