Skip to content

Instantly share code, notes, and snippets.

@JCotton1123
JCotton1123 / fetchenv.sh
Created June 9, 2016 20:38
Export env variables for each AWS CloudFormation stack output
#!/bin/bash
# This script will find all AWS CloudFormation stacks matching the supplied filter
# and export the outputs into environment variables.
#
# This script is assumed to be run on a host with an IAM profile matching the following:
#
# {
# "Version": "2012-10-17",
# "Statement": [