Skip to content

Instantly share code, notes, and snippets.

@nakamasato
Last active April 30, 2022 00:59
Show Gist options
  • Save nakamasato/4b7310c7d1ca9ae77cce5917833bd8d2 to your computer and use it in GitHub Desktop.
Save nakamasato/4b7310c7d1ca9ae77cce5917833bd8d2 to your computer and use it in GitHub Desktop.
Configure Data Access Audit Log with Terraform
resource "google_project_iam_audit_config" "all-services" {
project = "<your project>"
service = "allServices"
audit_log_config {
log_type = "ADMIN_READ"
}
audit_log_config {
log_type = "DATA_READ"
}
audit_log_config {
log_type = "DATA_WRITE"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment