Skip to content

Commit

Permalink
Fix couple of typos
Browse files Browse the repository at this point in the history
- lifecycle condition should be int
- Fix typo in naming usage log bucket

Missed pushing this commit as a part of
2i2c-org#3407
  • Loading branch information
yuvipanda committed Nov 13, 2023
1 parent 69f498b commit 48e32f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions terraform/gcp/buckets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ resource "google_storage_bucket" "user_buckets" {
# We only keep them for 30 days so they don't end up costing a
# ton of money
resource "google_storage_bucket" "usage_logs_bucket" {
name = "${var.prefix}-gcs-usages-logs"
name = "${var.prefix}-gcs-usage-logs"
location = var.region
project = var.project_id

labels = {}

lifecycle_rule {
condition {
age = "30d"
age = 30
}
action {
type = "Delete"
Expand All @@ -63,7 +63,7 @@ resource "google_storage_bucket" "usage_logs_bucket" {

# Provide access to GCS infrastructure to write usage logs to this bucket
resource "google_storage_bucket_iam_member" "usage_logs_bucket_access" {
bucket = google_storage_bucket.logging_bucket.name
bucket = google_storage_bucket.usage_logs_bucket.name
member = "group:[email protected]"
role = "roles/storage.objectCreator"
}
Expand Down

0 comments on commit 48e32f9

Please sign in to comment.