Skip to content

Instantly share code, notes, and snippets.

Avatar

teambob

View GitHub Profile
@teambob
teambob / list-cloudfornation-stack-outputs
Last active Jun 22, 2017 — forked from amosshapira/list-cloudfornation-stack-outputs
list outputs of a CloudFormation stack in plain text format, one Output per line.
View list-cloudfornation-stack-outputs
# 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 Nov 8, 2017 — forked from ttddyy/ec2-printconfig.py
a python script to display ec2 name and ip address as ssh-config or hosts file.
View ec2-printconfig.py
#! /usr/bin/env python
import argparse
import os
import sys
import boto.ec2
def parse_args():