Unable to terminate EC2 instance.

Hi I am new to Ansible. Can anyone please help me with my script.

I get the error when I run the below script. I am able to create the instance however unable to terminate.

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: MissingParameterThe request must contain the parameter InstanceId8e1039f2-b905-4d6b-b727-4395feb9310c
fatal: [localhost]: FAILED! => {“changed”: false, “failed”: true, “module_stderr”: “Traceback (most recent call last):\n File "/tmp/ansible_7eh91W/ansible_module_ec2.py", line 1725, in \n main()\n File "/tmp/ansible_7eh91W/ansible_module_ec2.py", line 1693, in main\n (changed, instance_dict_array, new_instance_ids) = terminate_instances(module, ec2, instance_ids)\n File "/tmp/ansible_7eh91W/ansible_module_ec2.py", line 1354, in terminate_instances\n for res in ec2.get_all_instances(instance_ids):\n File "/usr/lib/python2.7/site-packages/boto/ec2/connection.py", line 585, in get_all_instances\n max_results=max_results)\n File "/usr/lib/python2.7/site-packages/boto/ec2/connection.py", line 681, in get_all_reservations\n [(‘item’, Reservation)], verb=‘POST’)\n File "/usr/lib/python2.7/site-packages/boto/connection.py", line 1186, in get_list\n raise self.ResponseError(response.status, response.reason, body)\nboto.exception.EC2ResponseError: EC2ResponseError: 400 Bad Request\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\nMissingParameterThe request must contain the parameter InstanceId8e1039f2-b905-4d6b-b727-4395feb9310c\n”, “module_stdout”: “”, “msg”: “MODULE FAILURE”, “rc”: 0}