Your code uses a templates variable as the image, which fails.
Then you supply a list, which also fails.
This is correct as the image parameter requires a simple string:
https://docs.ansible.com/ansible/latest/modules/ec2_module.html
Follow that documentation.
There might be more issues ahead, I haven’t looked at that…