Files
spark/tools/aws/install_aws_cli.sh
John Colvin 3f58c2ce84 Add script to install aws cli
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.).
2025-03-10 05:24:49 +00:00

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"