Skip to content

Commit

Permalink
Implement executive order M-21-31 (#6070, PR #6879)
Browse files Browse the repository at this point in the history
  • Loading branch information
achave11-ucsc committed Feb 10, 2025
2 parents 54a2200 + 35c6fc6 commit 32e8167
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions terraform/shared/shared.tf.json.template.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,29 +331,20 @@ def conformance_pack(name: str) -> str:
}
}
},
'logs': {
'bucket': '${aws_s3_bucket.logs.id}',
'rule': {
'id': 'expire',
'status': 'Enabled',
'filter': {
},
'expiration': {
'days': config.audit_log_retention_days
}
}
},
'trail': {
'bucket': '${aws_s3_bucket.logs.id}',
'rule': {
'id': 'expire',
'status': 'Enabled',
'filter': {
},
'expiration': {
'days': config.audit_log_retention_days
**{
bucket: {
'bucket': '${aws_s3_bucket.%s.id}' % bucket,
'rule': {
'id': 'expire',
'status': 'Enabled',
'filter': {
},
'expiration': {
'days': config.audit_log_retention_days
}
}
}
for bucket in ['logs', 'trail']
}
},
'aws_s3_bucket_versioning': {
Expand Down

0 comments on commit 32e8167

Please sign in to comment.