Passing set fact value to ami copy

I don’t see a sort parameter documented for community.aws.ec2_ami_copy.
What do you hope to accomplish by passing it a date and calling it sort?

Excellent point. Why don’t people read the documentation.

https://docs.ansible.com/ansible/latest/collections/community/aws/ec2_ami_copy_module.html