Created
May 15, 2017 10:38
-
-
Save bitdivine/6b7e6b1ddc513bc75b5a0273724cd40f to your computer and use it in GitHub Desktop.
Source an Ansible 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
| # The credentials file looks like this: | |
| # [profile-name] | |
| # VAR_1=something | |
| # VAR_2=else | |
| # | |
| # [another-profile] | |
| # ... | |
| source <(sed -n "/^\[${profile}\]/,/^\[/{/^[^[]/p}" ~/.aws/credentials) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment