-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
google_project_iam_audit_config doesn't allow multiple log_type settings to be configured #5446
Comments
@dijitali you might want to try
Let me know if you still have questions. |
@dijitali I am closing this issue. If you still encounter problems or want to further discussion, you may reopen the issue. Thanks |
@edwardmedia - many thanks for taking the time to help and it's even documented like that:
Had a brain fart. Apologies for not RTFM here! |
This change is intended to avoid the confusion outlined in hashicorp/terraform-provider-google#5446, which I also ran into. Having multiple audit logs in the example should make it readily apparent how the resource is intended to be used.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Affected Resource(s)
google_project_iam_audit_config
Terraform Configuration Files
Debug Output
N/A
Panic Output
N/A
Expected Behavior
I'd expect
log_type
to accept an array of values rather than a single string, so that more than one ofDATA_READ
,DATA_WRITE
andADMIN_READ
can be specified.Actual Behavior
Steps to Reproduce
terraform validate
Important Factoids
This is the recommended setting for IAP Audit Logging per Security & Identity Products > Identity-Aware Proxy > Documentation > Guides > Enabling Cloud Audit Logs using Cloud SDK
The are also multiple
logType
elements in the example given in the API documentation, Security & Identity Products > Cloud IAM > Documentation > Reference > AuditConfigI have also tried adding 3 separate
google_project_iam_audit_config
resources for eachlog_type
setting in the hope they would merge but they then overwrite each other:References
N/A
The text was updated successfully, but these errors were encountered: