From bc4fbc746abe9fbac4d057881ec77f51f40f4746 Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Thu, 16 Apr 2020 08:39:33 +0300 Subject: [PATCH] Install AWS CLI --- debian-bootstrap.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/debian-bootstrap.sh b/debian-bootstrap.sh index 05b9aa96..4d66a10a 100755 --- a/debian-bootstrap.sh +++ b/debian-bootstrap.sh @@ -17,9 +17,19 @@ mkdir -p /home/stackage export LANG=C.UTF-8 export DEBIAN_FRONTEND=noninteractive -# Get curl +# Get curl and unzip apt-get update -apt-get install -y curl +apt-get install -y curl unzip + +# Install AWS CLI +mkdir -p /tmp/awscli +( +cd /tmp/awscli +curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" +unzip awscliv2.zip +./aws/install +) +rm -rf /tmp/awscli # Get Stack and GHC curl -sSL https://get.haskellstack.org/ | sh -s - -d /usr/bin