We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e096db commit edf4af0Copy full SHA for edf4af0
infra/gcp/terraform/k8s-infra-releases-prod/iam.tf
@@ -50,3 +50,22 @@ resource "google_storage_bucket_iam_policy" "releng_access_policy" {
50
bucket = module.k8s_releases_prod.bucket_name
51
policy_data = data.google_iam_policy.releng_access.policy_data
52
}
53
+
54
+/*
55
+Ensure audit logging is enabled for GCS.
56
+See: https://cloud.google.com/storage/docs/audit-logging
57
+*/
58
+module "audit_log_config" {
59
+ source = "terraform-google-modules/iam/google//modules/audit_config"
60
+ version = "~> 8.1"
61
62
+ project = google_project.project.project_id
63
64
+ audit_log_config = [
65
+ {
66
+ service = "storage.googleapis.com"
67
+ log_type = "DATA_READ"
68
+ exempted_members = []
69
+ }
70
+ ]
71
+}
0 commit comments