Harden low-risk infrastructure settings
This commit is contained in:
@@ -48,6 +48,11 @@ run "apply_group1_osaka" {
|
||||
error_message = "The Osaka test must create two unprotected, force-destroyable S3 buckets."
|
||||
}
|
||||
|
||||
assert {
|
||||
condition = length(aws_s3_bucket.access_logs_unprotected) == 1 && aws_s3_bucket.access_logs_unprotected[0].force_destroy
|
||||
error_message = "The Osaka test must create one unprotected, force-destroyable S3 access log bucket."
|
||||
}
|
||||
|
||||
assert {
|
||||
condition = !aws_cloudtrail.management_events.is_multi_region_trail
|
||||
error_message = "The Osaka test CloudTrail trail must be single-Region."
|
||||
|
||||
Reference in New Issue
Block a user