From c303e04a60c8a4f60652aedfbab337017262dfa9 Mon Sep 17 00:00:00 2001 From: jrglynn2 <41384097+jrglynn2@users.noreply.github.com> Date: Fri, 5 Nov 2021 15:24:11 -0400 Subject: [PATCH] Fix for Issue #560 Add example for searching volumes by EC2 instance ID (#561) Fix for Issue #560 Add example for searching volumes by EC2 instance ID SUMMARY Add example for Searching volumes based on EC2 Instance ID - "state: list" functionality from ec2_vol ISSUE TYPE Docs Pull Request COMPONENT NAME ec2_vol_info ADDITIONAL INFORMATION fixes: #560 Reviewed-by: Mark Chappell Reviewed-by: None --- docs/amazon.aws.ec2_vol_info_module.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/amazon.aws.ec2_vol_info_module.rst b/docs/amazon.aws.ec2_vol_info_module.rst index 0ccd59c3f32..5e98be72a5c 100644 --- a/docs/amazon.aws.ec2_vol_info_module.rst +++ b/docs/amazon.aws.ec2_vol_info_module.rst @@ -273,6 +273,16 @@ Examples filters: attachment.status: attached + # Gather information about all volumes related to an EC2 Instance + # register information to `volumes` variable + # Replaces functionality of `amazon.aws.ec2_vol` - `state: list` + - name: get volume(s) info from EC2 Instance + amazon.aws.ec2_vol_info: + filters: + attachment.instance-id: "i-000111222333" + region: "us-east-1" + register: volumes + Return Values