Need a Playbook to launch an instance

Could anyone share a working Playbook that launches an instance.
Thanks,
S. Jafar

This playbook will create an image with the attributes specified in the variables. The volumes will be the default size(s) from the AMI, the instance will have the default IP addressing, and so on.

Playbook to launch a basic image

Here is a playbook I am running to create an EC2 instance and listed below is the error I am getting. Any ideas?

Why not try the working, tested sample I sent you?

I suspect the error flows from not having your variables indented correctly, because count is definitely a valid attribute for the ec2 module.

Regards, K.

Hi Karl,

Just ran you Playbook and got the error listed below.

ubuntu@ip-10-0-1-14:/etc/ansible/Playbooks$ cat new-2.create.ec2.yml

Playbook to launch a basic image

You will need to install boto3.