From e4093f500b00e90bcba12d77ccfebc9df7697688 Mon Sep 17 00:00:00 2001 From: Aditya Putta Date: Fri, 1 Sep 2023 23:47:03 -0500 Subject: [PATCH 1/2] Include a playbook to create encrypted volume --- plugins/modules/ec2_snapshot.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/modules/ec2_snapshot.py b/plugins/modules/ec2_snapshot.py index cae97201d4c..e77a1908be8 100644 --- a/plugins/modules/ec2_snapshot.py +++ b/plugins/modules/ec2_snapshot.py @@ -116,6 +116,13 @@ volume_id: vol-abcdef12 description: snapshot of /data from DB123 taken 2013/11/28 12:18:32 + # Create an Encrypted EBS Snapshot + - amazon.aws.ec2_snapshot: + description: "Encrypted snapshot" + volume_id: "vol-01236789abcdef0" + encrypted: yes + register: encrypted_snapshot + # Snapshot of volume mounted on device_name attached to instance_id - amazon.aws.ec2_snapshot: instance_id: i-12345678 From 48a89e6689746564b6c94214da9b9fee6d1c18f0 Mon Sep 17 00:00:00 2001 From: Bikouo Aubin <79859644+abikouo@users.noreply.github.com> Date: Thu, 7 Sep 2023 12:32:05 +0200 Subject: [PATCH 2/2] Update plugins/modules/ec2_snapshot.py --- plugins/modules/ec2_snapshot.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/modules/ec2_snapshot.py b/plugins/modules/ec2_snapshot.py index e77a1908be8..63654ad067a 100644 --- a/plugins/modules/ec2_snapshot.py +++ b/plugins/modules/ec2_snapshot.py @@ -116,12 +116,11 @@ volume_id: vol-abcdef12 description: snapshot of /data from DB123 taken 2013/11/28 12:18:32 - # Create an Encrypted EBS Snapshot - - amazon.aws.ec2_snapshot: +# Create an Encrypted EBS Snapshot +- amazon.aws.ec2_snapshot: description: "Encrypted snapshot" volume_id: "vol-01236789abcdef0" encrypted: yes - register: encrypted_snapshot # Snapshot of volume mounted on device_name attached to instance_id - amazon.aws.ec2_snapshot: