Skip to content

Instantly share code, notes, and snippets.

View teambob's full-sized avatar

teambob

View GitHub Profile
@teambob
teambob / list-cloudfornation-stack-outputs
Last active June 22, 2017 07:56 — forked from amosshapira/list-cloudfornation-stack-outputs
list outputs of a CloudFormation stack in plain text format, one Output per line.
# list outputs of a CloudFormation stack in plain text format
# one output per line suitable for use in config files or bash file inclusion.
# To describe all stacks, leave out the --stack option
aws cloudformation describe-stacks \
--stack STACK_NAME \
--query 'Stacks[*].Outputs[*].[OutputKey,OutputValue]' \
--output text |tr '\t' =
@teambob
teambob / ec2-printconfig.py
Last active November 8, 2017 11:59 — forked from ttddyy/ec2-printconfig.py
a python script to display ec2 name and ip address as ssh-config or hosts file.
#! /usr/bin/env python
import argparse
import os
import sys
import boto.ec2
def parse_args():