Retrieve ec2 facts

How to retrieve ec2 facts of a host using local action if the host is in the stopped state?

ec2_facts needs to run from the host, use ec2_remote_facts for your scenario