-
Notifications
You must be signed in to change notification settings - Fork 0
fix: Fixed Access Logging #26
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -115,18 +115,23 @@ module "s3_core_audit_logs" { | |
| kms_key_id = data.aws_kms_alias.s3.target_key_arn | ||
| enable_public_access_block = true | ||
| enable_mfa_delete = false | ||
| enable_object_lock = true | ||
| enable_object_lock = false | ||
| object_lock_mode = "GOVERNANCE" | ||
| object_lock_retention_days = 30 | ||
|
Comment on lines
+118
to
120
|
||
| enable_lifecycle_expiration = false | ||
| expiration_days = 30 | ||
| additional_bucket_policy_documents = [data.aws_iam_policy_document.s3_core_audit_logs_policy.json] | ||
| is_logging_target = true | ||
| # checkov:CKV2_AWS_62: Not required for this bucket | ||
| # checkov:CKV2_AWS_61: Not required for this bucket | ||
| # checkov:CKV_AWS_144: Not required for this project | ||
| } | ||
|
|
||
| resource "aws_s3_bucket_acl" "cloudfront_acl" { | ||
| bucket = local.s3_bucket_core_audit_logs_name | ||
| resource "aws_s3_bucket_acl" "core_audit_logs_acl" { | ||
| bucket = module.s3_core_audit_logs.bucket_id | ||
| acl = "log-delivery-write" | ||
|
|
||
| depends_on = [ | ||
| module.s3_core_audit_logs | ||
| ] | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Object lock configuration parameters (
object_lock_modeandobject_lock_retention_days) are specified butenable_object_lockis set to false. These parameters will have no effect and should be removed or the configuration should be updated to conditionally omit them when object lock is disabled.