Skip to content

Commit

Permalink
Adds S3 bucket for Audit Manager assessment report
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Wessels Beljaars <[email protected]>
  • Loading branch information
stefanwb committed Jan 2, 2024
1 parent 1689951 commit d1517f9
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions audit_manager.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,31 @@ resource "aws_auditmanager_account_registration" "default" {
deregister_on_destroy = true
kms_key = module.kms_key_audit.arn
}

module "audit-manager-reports" {
source = "schubergphilis/mcaf-s3/aws"
version = "0.12.0"

name_prefix = "audit-manager-reports"
versioning = true

lifecycle_rule = [
{
id = "retention"
enabled = true

abort_incomplete_multipart_upload = {
days_after_initiation = 7
}

noncurrent_version_expiration = {
noncurrent_days = 90
}

noncurrent_version_transition = {
noncurrent_days = 14
storage_class = "ONEZONE_IA"
}
}
]
}

0 comments on commit d1517f9

Please sign in to comment.