Policy Packs
Enforce Access Logging Is Enabled for AWS S3 Buckets

Policy Setting: AWS > S3 > Bucket > Access Logging > Key Prefix

Policies

This policy setting is dependent on the following policy types:

Source

resource "turbot_policy_setting" "aws_s3_bucket_access_logging_bucket_prefix" {
resource = turbot_policy_pack.main.id
type = "tmod:@turbot/aws-s3#/policy/types/bucketAccessLoggingBucketPrefix"
# Your logging bucket prefix
value = "test/123456789012/mybucket/"
}