diff --git a/lib/ansible/modules/cloud/amazon/ec2_instance_facts.py b/lib/ansible/modules/cloud/amazon/ec2_instance_facts.py index 76265f5688b..864de8d7b5b 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_instance_facts.py +++ b/lib/ansible/modules/cloud/amazon/ec2_instance_facts.py @@ -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 = '''