This optional module is used to configure audit log configs for a project.
module "audit_log_config" {
source = "terraform-google-modules/iam/google//modules/audit_config"
project = my-project
audit_log_config = [
{
service = "pubsub.googleapis.com"
log_type = "DATA_READ"
exempted_members = [
"group:[email protected]",
"serviceAccount:[email protected]",
"user:[email protected]"
]
},
{
service = "storage.googleapis.com"
log_type = "DATA_WRITE"
exempted_members = [
"group:[email protected]",
"serviceAccount:[email protected]",
"user:[email protected]"
]
},
{
service = "pubsub.googleapis.com"
log_type = "DATA_WRITE"
exempted_members = [
"group:[email protected]",
"serviceAccount:[email protected]",
"user:[email protected]"
]
}
]
}
Name |
Description |
Type |
Default |
Required |
audit_log_config |
List of objects to be added to audit log config |
list(object({ service : string, log_type : string, exempted_members : list(string) })) |
n/a |
yes |
project |
Project to add the IAM policies/bindings |
string |
n/a |
yes |
Name |
Description |
audit_log_config |
Map of log type and exempted members to be added to service |