Description
EBS optimization reduces competition between storage I/O and other network traffic. The default for EbsOptimized depends on the instance type.
Potential impact
On types with optional optimization, a busy volume may fall short of the throughput your application needs.
Remediation
Check the type’s support and default. If you need optional optimization, set EbsOptimized: true. Review the additional cost and the throughput limits of both the instance and the volume.
Examples
Supply an InstanceType that supports optional optimization, a compatible AmiId, and your key pair name for KeyName.
Before
yaml
Resources:
MyEC2Instance:
Type: AWS::EC2::Instance
Properties:
ImageId: !Ref AmiId
InstanceType: !Ref InstanceType
KeyName: "testkey"
BlockDeviceMappings:
- DeviceName: "/dev/sdm"
Ebs:
VolumeType: "io1"
Iops: "200"
DeleteOnTermination: "false"
VolumeSize: "20"
After
yaml
Resources:
MyEC2Instance:
Type: AWS::EC2::Instance
Properties:
ImageId: !Ref AmiId
InstanceType: !Ref InstanceType
KeyName: "testkey"
BlockDeviceMappings:
- DeviceName: "/dev/sdm"
Ebs:
VolumeType: "io1"
Iops: "200"
DeleteOnTermination: "false"
VolumeSize: "20"
EbsOptimized: true