Ensure S3 bucket has lock configuration enabled by default

Error: S3 bucket lock configuration disabled

Bridgecrew Policy ID: BC_AWS_GENERAL_71
Checkov Check ID: CKV_AWS_143
Severity: LOW

S3 bucket lock configuration disabled

Description

TBA

Fix - Buildtime

Terraform

  • Resource: aws_s3_bucket
  • Argument: object_lock_enabled
resource "aws_s3_bucket" "test" {
   ...
+  object_lock_configuration = {
+     object_lock_enabled = "Enabled"
+  }
}

Did this page help you?