From fce662c9de873deed76c74a30a6adab6aad17149 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Thu, 2 Jan 2020 10:22:15 -0500 Subject: [PATCH] [provisioning] Add AWS command-line utilities --- recipes/aws | 11 +++++++++++ recipes/python | 9 +++++++++ 2 files changed, 20 insertions(+) create mode 100644 recipes/aws diff --git a/recipes/aws b/recipes/aws new file mode 100644 index 0000000..b6771ef --- /dev/null +++ b/recipes/aws @@ -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 diff --git a/recipes/python b/recipes/python index ea1edee..dd05a97 100644 --- a/recipes/python +++ b/recipes/python @@ -7,6 +7,15 @@ __PYTHON_VERSION=3.7.4 _recipe _path _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 darwin) _recipe brew