From dc8a3c09d6595d671877ada202033e29fd5cb88d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20de=20Villamil?= Date: Tue, 1 Jul 2014 07:50:29 +0200 Subject: [PATCH] Adds support for EBS optimized instances in ecl_lc module. --- cloud/ec2_lc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/cloud/ec2_lc b/cloud/ec2_lc index e7ffb3d65cf..401a972aec3 100755 --- a/cloud/ec2_lc +++ b/cloud/ec2_lc @@ -97,6 +97,12 @@ options: required: false default: null aliases: [] + ebs_optimized: + description: + - Specifies whether the instance is optimized for EBS I/O (true) or not (false). + required: false + default: false + aliases: [] extends_documentation_fragment: aws """ @@ -160,6 +166,7 @@ def create_launch_config(connection, module): kernel_id = module.params.get('kernel_id') ramdisk_id = module.params.get('ramdisk_id') instance_profile_name = module.params.get('instance_profile_name') + ebs_optimized = module.params.get('ebs_optimized') bdm = BlockDeviceMapping() if volumes: @@ -183,7 +190,8 @@ def create_launch_config(connection, module): kernel_id=kernel_id, spot_price=spot_price, ramdisk_id=ramdisk_id, - instance_profile_name=instance_profile_name) + instance_profile_name=instance_profile_name, + ebs_optimized=ebs_optimized) launch_configs = connection.get_all_launch_configurations(names=[name]) changed = False @@ -228,6 +236,7 @@ def main(): instance_monitoring=dict(default=False, type='bool'), ramdisk_id=dict(type='str'), instance_profile_name=dict(type='str'), + ebs_optimized=dict(default=False, type='bool'), ) )