This file contains hidden or 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
| #!/bin/bash -e | |
| # Setup a Root CA in vault | |
| # Generate and sign an Intermediate cert | |
| # | |
| # Requires: | |
| # * A running vault server already initialzed and unsealed | |
| # * Environment variable VAULT_TOKEN is set | |
| # * vault cli (https://www.vaultproject.io) | |
| # * httpie (https://github.com/jkbrzt/httpie) |
This file contains hidden or 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
| #!/bin/bash | |
| usage () { | |
| cat <<DOCUMENTATIONXX | |
| Usage : . $0 ROLE_ARN [PARENT_PROFILE_NAME] | |
| ^--- Note that this script must be sourced not executed | |
| This tool will generate temporary credentials for an assumed role, save | |
| those ephemeral credentials in the awscli config and set the alias of | |
| "aaws" to use this new ephemeral awscli profile |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # I was frustrated that no matter what buffer setting I passed to communicate, | |
| # I could not get stdout from my subprocess until the process had completed. | |
| # I googled around and came up with this, which illustrates the problem and a | |
| # solution. | |
| # http://stackoverflow.com/questions/2804543/read-subprocess-stdout-line-by-line | |
| # http://bugs.python.org/issue3907 | |
| # http://docs.python.org/library/io.html |
This file contains hidden or 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
| """ | |
| The MIT License (MIT) | |
| Copyright (c) 2011 Numan Sachwani | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of | |
| this software and associated documentation files (the "Software"), to deal in | |
| the Software without restriction, including without limitation the rights to | |
| use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
| of the Software, and to permit persons to whom the Software is furnished to do | |
| so, subject to the following conditions: |