Skip to content

Instantly share code, notes, and snippets.

@clebio
Created January 5, 2016 18:40
Show Gist options
  • Save clebio/d3b4c5750c4caddf9eb9 to your computer and use it in GitHub Desktop.
Save clebio/d3b4c5750c4caddf9eb9 to your computer and use it in GitHub Desktop.
LC_NAME=some_launch_config
B64STRING=$(\
aws autoscaling describe-launch-configurations \
--launch-configuration-names $LC_NAME \
--query 'LaunchConfigurations[].UserData' \
--output text
)
python -c "import base64; print(base64.b64decode('$B64STRING'));"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment