mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
ec2_lc.py: Also pass 'encrypted' when adding a volume
This only allows for using the default KMS keys, but enables encryption at rest without needing to migrate the module to boto3
This commit is contained in:
committed by
Brian Coca
parent
1ad2e1059c
commit
c5edaf5e68
@@ -140,6 +140,7 @@ EXAMPLES = '''
|
||||
device_type: io1
|
||||
iops: 3000
|
||||
delete_on_termination: true
|
||||
encrypted: true
|
||||
- device_name: /dev/sdb
|
||||
ephemeral: ephemeral0
|
||||
|
||||
@@ -177,7 +178,8 @@ def create_block_device(module, volume):
|
||||
size=volume.get('volume_size'),
|
||||
volume_type=volume.get('device_type'),
|
||||
delete_on_termination=volume.get('delete_on_termination', False),
|
||||
iops=volume.get('iops'))
|
||||
iops=volume.get('iops'),
|
||||
encrypted=volume.get('encrypted',None))
|
||||
|
||||
|
||||
def create_launch_config(connection, module):
|
||||
|
||||
Reference in New Issue
Block a user