-
Notifications
You must be signed in to change notification settings - Fork 834
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
infra/gcp/k8s-infra-public-pii: fix post-deployment issue of 2031.
Fix of a typo in the service name Ensure bucket k8s-infra-artifacts-gsclogs is not deleted with Terraoform Remove non-working IAM binding Signed-off-by: Arnaud Meukam <[email protected]>
- Loading branch information
Showing
1 changed file
with
5 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,7 +45,7 @@ resource "google_project_service" "project" { | |
for_each = toset([ | ||
"bigquery.googleapis.com", | ||
"bigqueryreservation.googleapis.com", | ||
"bigquerytransfer.googleapis.com", | ||
"bigquerydatatransfer.googleapis.com", | ||
"storage-component.googleapis.com" | ||
]) | ||
|
||
|
@@ -83,7 +83,7 @@ resource "google_storage_bucket" "audit-logs-gcs" { | |
|
||
// NOTE: Prevent the bucket from being deleted | ||
lifecycle { | ||
prevent_destroy = false | ||
prevent_destroy = true | ||
} | ||
} | ||
|
||
|
@@ -102,6 +102,8 @@ resource "google_storage_bucket_iam_policy" "analytics_objectadmin_policy" { | |
policy_data = data.google_iam_policy.storage_policy_objectadmin.policy_data | ||
} | ||
|
||
/* TODO(ameukam): This not working. possible conflict with google_storage_bucket_iam_policy.analytics_objectadmin_policy | ||
data "google_iam_policy" "storage_policy_legacybucketwriter" { | ||
binding { | ||
role = "roles/storage.legacyBucketWriter" | ||
|
@@ -114,7 +116,7 @@ data "google_iam_policy" "storage_policy_legacybucketwriter" { | |
resource "google_storage_bucket_iam_policy" "analytics_legacybucketwriter_policy" { | ||
bucket = google_storage_bucket.audit-logs-gcs.name | ||
policy_data = data.google_iam_policy.storage_policy_legacybucketwriter.policy_data | ||
} | ||
} */ | ||
|
||
// Allow ready-only access to [email protected] | ||
resource "google_storage_bucket_iam_member" "artificats-gcs-logs" { | ||
|