Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions startupscript/aws/configure-aws-vault.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ export AWS_VAULT_FILE_PASSPHRASE=""
# do not use.
export DBUS_SESSION_BUS_ADDRESS="/dev/null"

if [ "\$1" = "export" ]; then
# Use a lock to prevent multiple aws-vault processes from attempting to
# retrieve credentials from wb at the same time
exec 200>/var/lock/aws-vault.lock
flock -w 30 200 || { echo "Failed to acquire lock for aws-vault export" >&2; exit 1; }
fi

exec "${AWS_VAULT_BINARY_PATH}" "\$@"
EOF

Expand Down
Loading