ec2_instance_facts.py: documentation: add example (#49010)

Add an example of using multiple states for instance-state-name in filters. Not obvious how it works until you try.
This commit is contained in:
Selivanov Pavel 2018-11-28 22:42:38 +03:00 committed by John R Barker
parent 965dec6a9a
commit 0b380b09bf

View file

@ -60,6 +60,12 @@ EXAMPLES = '''
- ec2_instance_facts:
filters:
"tag:Name": Example
# Gather facts about any instance in states "shutting-down", "stopping", "stopped"
- ec2_instance_facts:
filters:
instance-state-name: [ "shutting-down", "stopping", "stopped" ]
'''
RETURN = '''