# Help on ec2 creation using ansible

**URL:** <https://forum.ansible.com/t/help-on-ec2-creation-using-ansible/33611>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [August 13, 2020, 9:44pm UTC](https://forum.ansible.com/t/help-on-ec2-creation-using-ansible/33611 "2020-08-13T21:44:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [August 13, 2020, 9:44pm UTC](https://forum.ansible.com/t/help-on-ec2-creation-using-ansible/33611/1 "2020-08-13T21:44:40Z")

</div>

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](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…
