This redirect is part of the amazon.aws collection (version 1.5.0).
This redirect has been deprecated. Please update your tasks to use the new name
amazon.aws.ec2_ami_infoinstead. It will be removed in a major release after 2021-12-01 of amazon.aws.
This is a redirect to the amazon.aws.ec2_ami_info module.
This redirect also works with Ansible 2.9.
The collection contains the following information on this deprecation: ec2_ami_facts was renamed in Ansible 2.9 to ec2_ami_info. Please update your tasks.