-
Notifications
You must be signed in to change notification settings - Fork 329
Check if AWS_SHARED_CREDENTIALS_FILE is set #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| #!/bin/sh | ||
|
|
||
| if [ -z "${AWS_SHARED_CREDENTIALS_FILE}" ]; then echo "ENV VAR AWS_SHARED_CREDENTIALS_FILE is not set"; exit 1; fi | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: prefer if [[ -z "${AWS_SHARED_CREDENTIALS_FILE:-}" ]]; then
echo "Required variable \$AWS_SHARED_CREDENTIALS_FILE unset"
exit 1
fi
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, can't we just omit this? The AWS library will fail when no credentials are found, and this script could be used locally with the credentials in
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Deleted. |
||
|
|
||
| ### expirationDate is always with timezone +00:00, eg, "2019-07-23T22:35+0000" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This comment is out of place
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Improved a bit. |
||
| MY_DATE=$(TZ=":Africa/Abidjan" date '+%Y-%m-%d') | ||
| declare -a regions=("us-east-1" "us-east-2" "us-west-1") | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I don't think we want to run POSIX shell. If we have
bash, let's use it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. CP/Paste error.