-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve support for arbitrary s3 endpoints and for multiple aws…
… profiles - we had been assuming that the ~/.aws/credentials file had only one credential pair - and had been hard-coding an s3 endpoint on the latter, there isn't a supported solution for this yet (aws/aws-cli#1270). lacking a supported solution, this PR for now assumes that the ~/.aws/config section may have an `endpoint_url=` conf entry.
- Loading branch information
Showing
3 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Choose an AWS Profile | ||
|
||
```shell | ||
if [ ! -d ~/.aws ]; then mkdir ~/.aws; fi | ||
if [ ! -f ~/.aws/config ]; then echo "[default]" > ~/.aws/config; fi | ||
``` | ||
|
||
=== "expand(cat ~/.aws/config | grep -E '^\\[' | tr -d '[]')" | ||
```shell | ||
export AWS_PROFILE="${choice}" | ||
``` |