Changeset View
Changeset View
Standalone View
Standalone View
scripts/source_development_defaults.sh
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | |||||
# For cargo + rustup applications, ensure cargo user bin directory is on path | # For cargo + rustup applications, ensure cargo user bin directory is on path | ||||
if [[ ! "$PATH" =~ \.cargo/bin ]]; then | if [[ ! "$PATH" =~ \.cargo/bin ]]; then | ||||
export PATH="$PATH":${HOME}/.cargo/bin | export PATH="$PATH":${HOME}/.cargo/bin | ||||
fi | fi | ||||
# For development and local testing, point to localstack | # For development and local testing, point to localstack | ||||
export LOCALSTACK_ENDPOINT=http://localhost:4566 | export LOCALSTACK_ENDPOINT=http://localhost:4566 | ||||
export AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID:-test} | |||||
export AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY:-test} | |||||
# Create easier-to-use shortcut for localstack | |||||
awslocal() { | |||||
aws --endpoint-url=http://localhost:4566 "$@" | |||||
} | |||||
# Enable shell completions | |||||
if [[ $(basename "$0") == "bash" ]]; then | |||||
complete -C aws_completer awslocal | |||||
fi |