Skip to content

Commit

Permalink
Fix for Issue ansible-collections#560 Add example for searching volum…
Browse files Browse the repository at this point in the history
…es by EC2 instance ID (ansible-collections#561)

Fix for Issue ansible-collections#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: ansible-collections#560

Reviewed-by: Mark Chappell <None>
Reviewed-by: None <None>
  • Loading branch information
jrglynn2 authored Nov 5, 2021
1 parent ed10b9c commit c303e04
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/amazon.aws.ec2_vol_info_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c303e04

Please sign in to comment.