2020-10-23 17:59:08 +03:00
|
|
|
#!/bin/bash -e -o pipefail
|
2023-11-28 02:25:03 +01:00
|
|
|
################################################################################
|
|
|
|
|
## File: install-aws-tools.sh
|
|
|
|
|
## Desc: Install the AWS CLI, Session Manager plugin for the AWS CLI, and AWS SAM CLI
|
|
|
|
|
################################################################################
|
|
|
|
|
|
2020-10-27 09:45:22 +03:00
|
|
|
source ~/utils/utils.sh
|
|
|
|
|
|
2024-01-09 14:47:31 +01:00
|
|
|
echo "Installing aws..."
|
2023-11-30 13:39:32 +01:00
|
|
|
awscliv2_pkg_path=$(download_with_retry "https://awscli.amazonaws.com/AWSCLIV2.pkg")
|
|
|
|
|
sudo installer -pkg "$awscliv2_pkg_path" -target /
|
2020-09-10 14:34:08 +03:00
|
|
|
|
2024-08-09 11:25:15 +02:00
|
|
|
echo "Installing aws sam cli..."
|
|
|
|
|
brew tap aws/tap
|
|
|
|
|
brew_smart_install aws-sam-cli
|
2020-09-10 14:34:08 +03:00
|
|
|
|
|
|
|
|
echo "Install aws cli session manager"
|
2020-12-22 14:48:31 +07:00
|
|
|
brew install --cask session-manager-plugin
|
2020-12-17 19:37:19 +07:00
|
|
|
|
2021-01-22 09:26:28 +03:00
|
|
|
invoke_tests "Common" "AWS"
|