EC2 with EBS not optimized
ID |
aws_ec2_ebs_optimized |
Severity |
info |
Vendor |
AWS |
Resource |
Other |
Tags |
non-reachable |
Description
EC2 with EBS not optimized. An Amazon EBS–optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O. This optimization provides the best performance for your EBS volumes by minimizing contention between Amazon EBS I/O and other traffic from your instance.
To fix it you must configure ebs_optimized=true
.
Learn more about this topic at AWS EBS Optimized.
Examples
---
- name: Example playbook
hosts: localhost
tasks:
- name: instance
amazon.aws.ec2_instance:
name: "tower-callback-test"
key_name: "prod-ssh-key"
vpc_subnet_id: subnet-5ca1ab1e
security_group: default
ebs_optimized: false
tower_callback:
# IP or hostname of tower server
tower_address: 1.2.3.4
job_template_id: 876
host_config_key: '[secret config key goes here]'
network:
assign_public_ip: true
image_id: ami-123456
cpu_credit_specification: unlimited
tags:
SomeThing: "A value"
Mitigation / Fix
---
- name: Example playbook
hosts: localhost
tasks:
- name: instance
amazon.aws.ec2_instance:
name: "tower-callback-test"
key_name: "prod-ssh-key"
vpc_subnet_id: subnet-5ca1ab1e
security_group: default
ebs_optimized: true
tower_callback:
# IP or hostname of tower server
tower_address: 1.2.3.4
job_template_id: 876
host_config_key: '[secret config key goes here]'
network:
assign_public_ip: true
image_id: ami-123456
cpu_credit_specification: unlimited
tags:
SomeThing: "A value"