Review EC2 EBS optimization

Check instance-type support and defaults to provide appropriate EBS performance for the workload.

Description

EBS optimization reduces competition between storage I/O and other EC2 traffic. Instance types can enable it by default, offer it as an option, or lack support.

Potential impact

Limited instance or volume bandwidth can reduce throughput and slow application responses.

Remediation

Set ebsOptimized: true if the type offers optional optimization and the workload needs it. For an unsupported type, check cost and compatibility before switching types. Measure instance and volume performance under load.

Examples

The example switches from t2.micro, which lacks EBS optimization, to t3.large, which enables it by default. Supply the omitted deployment settings, including the AMI.

Before

yaml
name: aws-eks
runtime: yaml
resources:
  example:
    type: aws:ec2:Instance
    properties:
      instanceType: t2.micro
      monitoring: true
      ebsOptimized: false

After

yaml
name: aws-eks
runtime: yaml
resources:
  example:
    type: aws:ec2:Instance
    properties:
      instanceType: t3.large
      monitoring: true
      ebsOptimized: true

References