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 applicationsIf someone gains unauthorized access to the root block device's data, they would be able to read its contents.
Set the root_block_device.encrypted
attribute to true
.
# aws_instance example
resource "aws_instance" "encrypted" {
ami = "id-abcd1234"
instance_type = "t3.micro"
root_block_device {
encrypted = true
}
tags = {
Name = "HelloWorld"
}
}
# aws_launch_configuration example
resource "aws_launch_configuration" "encrypted" {
name = "web_config"
image_id = "id-1234abcd"
instance_type = "t2.micro"
root_block_device {
encrypted = true
}
}
# aws_spot_fleet_request example
resource "aws_spot_fleet_request" "encrypted" {
iam_fleet_role = "arn:aws:iam::123456789012:role/spot-fleet"
spot_price = "0.03"
allocation_strategy = "diversified"
target_capacity = 6
valid_until = "2019-11-04T20:44:20Z"
launch_specification {
instance_type = "m4.10xlarge"
ami = "ami-1234abcd"
spot_price = "2.793"
placement_tenancy = "dedicated"
iam_instance_profile_arn = "arn:aws:iam::123456789012:role/spot-fleet"
root_block_device {
encrypted = true
}
}
}
# aws_spot_instance_request example
resource "aws_spot_instance_request" "encrypted" {
ami = "ami-1234abcd"
spot_price = "0.03"
instance_type = "c4.xlarge"
root_block_device {
encrypted = true
}
tags = {
Name = "HelloWorld"
}
}
Set BlockDeviceMappings.Encrypted
attribute of root device to true
.