Ensure that EC2 is EBS optimized

Error: EC2 EBS is not optimized

Bridgecrew Policy ID: BC_AWS_GENERAL_68
Checkov Check ID: CKV_AWS_135
Severity: LOW

EC2 EBS is not optimized

Description

Ensuring that EC2 instances are EBS-optimized will help to deliver enhanced performance for EBS workloads. They provide dedicated throughput to Amazon Elastic Block Store (EBS) volumes, which can result in improved EBS performance. Additionally, EBS-optimized instances use a separate network connection for EBS traffic, which can reduce network latency and improve the performance of EBS-intensive workloads.

Fix - Buildtime

Terraform

  • Resource: aws_instance
  • Argument: ebs_optimized
resource "aws_instance" "foo" {
  ...
+ ebs_optimized = true
}