[provisioning] Add AWS command-line utilities

This commit is contained in:
Correl Roush 2020-01-02 10:22:15 -05:00
parent c962e1ff68
commit fce662c9de
2 changed files with 20 additions and 0 deletions

11
recipes/aws Normal file
View file

@ -0,0 +1,11 @@
#!/bin/bash
# Description: AWS command-line utilities
set -e
_recipe brew
_recipe python
_pip awscli
_brew_tap lucagrulla/tap
_brew cw

View file

@ -7,6 +7,15 @@ __PYTHON_VERSION=3.7.4
_recipe _path _recipe _path
_recipe git _recipe git
function _pip {
local pkg=$1
if ! pip show $pkg >/dev/null 2>&1; then
_run "[pip] Install $pkg" pip install $pkg
else
echo "[pip] $pkg is already installed, skiping."
fi
}
case $_PLATFORM in case $_PLATFORM in
darwin) darwin)
_recipe brew _recipe brew