Skip to content

Instantly share code, notes, and snippets.

View svrist's full-sized avatar

Søren B. Vrist svrist

View GitHub Profile
@svrist
svrist / export_values.py
Created February 7, 2017 21:43
export cloudformation outputs as more simple json
from __future__ import division, print_function, unicode_literals
import json
import re
import boto3
def main(stack):
cf = boto3.client('cloudformation')
@svrist
svrist / cf_create_or_update.py
Created February 7, 2017 21:34
Update or create a CloudFormation stack given a name and template + params'
'Update or create a stack given a name and template + params'
from __future__ import division, print_function, unicode_literals
from datetime import datetime
import logging
import json
import sys
import boto3
import botocore