Created
January 5, 2016 18:40
-
-
Save clebio/d3b4c5750c4caddf9eb9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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