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:
parent
965dec6a9a
commit
0b380b09bf
1 changed files with 6 additions and 0 deletions
|
@ -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 = '''
|
||||
|
|
Loading…
Reference in a new issue