-
Notifications
You must be signed in to change notification settings - Fork 65
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
DRIVERS-2648 Add AWS Secrets handling for serverless #371
Conversation
.evergreen/serverless/README.md
Outdated
$DRIVERS_TOOLS/.evergreen/serverless/setup-secrets.sh serverless-next | ||
``` | ||
|
||
The full task group might look like: |
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.
What is this referencing? Feels very out of nowhere when compared to the previous lines.
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.
Updated
. $SCRIPT_DIR/../handle-paths.sh | ||
|
||
# Ensure that secrets have already been set up. | ||
if [ -f "$SCRIPT_DIR/secrets-export.sh" ]; then |
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.
What if this file doesn't exist?
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.
Legacy invocations won't have the file, the individual env var checks below will handle it.
|
||
SCRIPT_DIR=$(dirname ${BASH_SOURCE[0]}) | ||
. $SCRIPT_DIR/../handle-paths.sh | ||
pushd $SCRIPT_DIR |
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.
Should there be a matching popd
at the end of this script?
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
Also adds credentials for
serverless_next
.Tested with mongodb/mongo-python-driver#1428 and mongodb/mongo-go-driver#1473.