exception for cloudformation module

Hi,

When i execute playbook for cloudformation module on ubuntu 14, one exception will throw as: create_stack() got an unexpected keyword argument ‘stack_policy_body’.

Python version is 2.7 and python-boto has already been update to latest version via apt-get update.

Looks like this is caused by environment but i have no idea how to fix it on my workstation.

It’s appreciated for your comments.

Thanks

Hi Clark,

which version of Ansible are you running? you can find this out by running

Hi Clark,

which version of Ansible are you running? you can find this out by running

ansible --version

Can you provide the playbook you are using to call the cloudformation module and perhaps the cloudformation template?

It sounds like you should be using the parameter stack_policy instead of stack_policy_body? or that you are passing something other than a string.

http://boto.readthedocs.org/en/latest/ref/cloudformation.html?highlight=create_stack#module-boto.cloudformation.connection

https://github.com/ansible/ansible-modules-core/blob/stable-1.9/cloud/amazon/cloudformation.py#L215 The stack_policy_body actually gets set to this parameter and then parsed in to create_stack.

Thanks!