Skip to content

Instantly share code, notes, and snippets.

@jhurliman
Created July 16, 2013 22:19
Show Gist options
  • Save jhurliman/6015698 to your computer and use it in GitHub Desktop.
Save jhurliman/6015698 to your computer and use it in GitHub Desktop.
Run CloudFormation via Ansible
- name: CloudFormation deployment
hosts: local
connection: local
user: root
gather_facts: false
tags:
- initialize
tasks:
- name: Run CloudFormation
action: cloudformation
stack_name="CloudPlatform"
state=present
region=us-west-1
disable_rollback=no
template=cloudFormation.json
args:
template_parameters:
KeyName: keyname
InternalAvailabilityZoneLetter: b
PublicAvailabilityZoneLetter: c
register: stack
- name: Show CloudFormation output
debug: msg="My stack outputs are {{stack}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment