Adds support for EBS optimized instances in ecl_lc module.
This commit is contained in:
parent
3a3afc7ed3
commit
dc8a3c09d6
1 changed files with 10 additions and 1 deletions
11
cloud/ec2_lc
11
cloud/ec2_lc
|
@ -97,6 +97,12 @@ options:
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
aliases: []
|
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
|
extends_documentation_fragment: aws
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -160,6 +166,7 @@ def create_launch_config(connection, module):
|
||||||
kernel_id = module.params.get('kernel_id')
|
kernel_id = module.params.get('kernel_id')
|
||||||
ramdisk_id = module.params.get('ramdisk_id')
|
ramdisk_id = module.params.get('ramdisk_id')
|
||||||
instance_profile_name = module.params.get('instance_profile_name')
|
instance_profile_name = module.params.get('instance_profile_name')
|
||||||
|
ebs_optimized = module.params.get('ebs_optimized')
|
||||||
bdm = BlockDeviceMapping()
|
bdm = BlockDeviceMapping()
|
||||||
|
|
||||||
if volumes:
|
if volumes:
|
||||||
|
@ -183,7 +190,8 @@ def create_launch_config(connection, module):
|
||||||
kernel_id=kernel_id,
|
kernel_id=kernel_id,
|
||||||
spot_price=spot_price,
|
spot_price=spot_price,
|
||||||
ramdisk_id=ramdisk_id,
|
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])
|
launch_configs = connection.get_all_launch_configurations(names=[name])
|
||||||
changed = False
|
changed = False
|
||||||
|
@ -228,6 +236,7 @@ def main():
|
||||||
instance_monitoring=dict(default=False, type='bool'),
|
instance_monitoring=dict(default=False, type='bool'),
|
||||||
ramdisk_id=dict(type='str'),
|
ramdisk_id=dict(type='str'),
|
||||||
instance_profile_name=dict(type='str'),
|
instance_profile_name=dict(type='str'),
|
||||||
|
ebs_optimized=dict(default=False, type='bool'),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue