The aws cli can be used to configure credentials in the shell in order to retrieve secrets (e.g., production api keys for alphaworx, etc.).
16 lines
380 B
Bash
Executable File
16 lines
380 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
this_dir="$(dirname "${BASH_SOURCE[0]}")"
|
|
work_dir="$this_dir/.tmp"
|
|
# Clean previous install
|
|
rm -rf "$work_dir"
|
|
mkdir -p "$work_dir"
|
|
cd "$work_dir"
|
|
# Download installer and run it
|
|
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
|
|
unzip awscliv2.zip && \
|
|
sudo ./aws/install
|
|
cd "$this_dir"
|
|
# Clean up
|
|
rm -rf "$work_dir"
|