This example code is used to show how to leverage Ansible to deploy an AWS CloudFormation stack that was described using the open source python library troposphere.
This code uses python 3.
To install the prerequisites using pip3.
pip3 install -r requirements.txt
ansible-playbook -i localhost, deploy-cloudformation.yaml -e 'ansible_python_interpreter=/usr/bin/python3' -vvv
The script uses the AWS credentials from the environment, so make sure you have your AWS profile configured.