forked from 2i2c-org/infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -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" | ||
} | ||
|