CCSS (Common Configuration Scoring System) is a set of measures used to determine the severity of the rule.
Each rule is associated with a high-level category. For example IAM, Container, Monitoring, Logging, Network, etc.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsS3 bucket will not enforce MFA login on delete requests.
Set the aws_s3_bucket
versioning
block mfa_delete
field to true
.
versioning
block of an aws_s3_bucket
sets the field mfa_delete
to true
.versioning_configuration
block of an aws_s3_bucket_versioning
resource sets the field mfa_delete
to Enabled
.# For AWS provider < v4.0.0
resource "aws_s3_bucket" "example" {
versioning {
enabled = true
mfa_delete = true
}
}
# For AWS provider >= v4.0.0
resource "aws_s3_bucket" "example" {
bucket_prefix = "example-"
}
resource "aws_s3_bucket_versioning" "example" {
bucket = aws_s3_bucket.example.id
mfa = "arn:aws:iam::0000000000:mfa/my-mfa-device 123456"
versioning_configuration {
status = "Enabled"
mfa_delete = "Enabled"
}
}