mirror of
https://github.com/correl/dotfiles.git
synced 2024-12-18 11:06:17 +00:00
[provisioning] Add AWS command-line utilities
This commit is contained in:
parent
c962e1ff68
commit
fce662c9de
2 changed files with 20 additions and 0 deletions
11
recipes/aws
Normal file
11
recipes/aws
Normal 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
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue