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
#!/bin/bash | |
export-aws () { | |
# gets iam security credentials from instance metadata and export in envirovment for runtime script | |
# after script finished credentials is gone away | |
# system must have awscli&jq preinstalled | |
# converted to function | |
# Usage: export-aws ROLENAME |