You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"google_project_iam_audit_config" {
source="./modules/google-beta/r/google_project_iam_audit_config"# project - (optional) is a type of stringproject=null# service - (required) is a type of stringservice=nullaudit_log_config=[{
exempted_members = []
log_type =null
}]
}
variable"project" {
description="(optional)"type=stringdefault=null
}
variable"service" {
description="(required) - Service which will be enabled for audit logging. The special value allServices covers all services."type=string
}
variable"audit_log_config" {
description="nested block: NestingSet, min items: 1, max items: 0"type=set(object(
{
exempted_members =set(string)
log_type =string
}
))
}
resource"google_project_iam_audit_config""this" {
# project - (optional) is a type of stringproject=var.project# service - (required) is a type of stringservice=var.servicedynamic"audit_log_config" {
for_each=var.audit_log_configcontent {
# exempted_members - (optional) is a type of set of stringexempted_members=audit_log_config.value["exempted_members"]
# log_type - (required) is a type of stringlog_type=audit_log_config.value["log_type"]
}
}
}