export AWS_ACCESS_KEY_ID='add-aws-access-key-id'
export AWS_SECRET_ACCESS_KEY='add-aws-secret-access-key'
pip3 install boto boto3 botocore
---
- name: create cloudformation stack
hosts: localhost
gather_facts: False
tasks:
- name: launch cloudformation stack
community.aws.cloudformation:
stack_name: "stefano"
state: "present"
region: "us-east-2"
template: "{{ lookup('file', '/Users/stefano/Downloads/DevOPS/code') }}"