-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaws.sh
executable file
·91 lines (67 loc) · 2.32 KB
/
aws.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/env bash
source _utils.sh
# ------------------------------------------------------------------------------
e_pending "Installing AWS Tools"
# ------------------------------------------------------------------------------
brew cleanup
brew doctor
# Install Pre requisits
xcode-select --install
echo 'Inspect the results of brew doctor then press any key to continue...'; read -k1 -s
# ------------------------------------------------------------------------------
e_pending "Ensure Python and Pip are installed"
# ------------------------------------------------------------------------------
brew install [email protected]
python3 -m pip install --upgrade pip setuptools wheel
if test ! $(which aws); then
# Install AWS SDK
echo "------------------------------"
echo "Setting up AWS."
brew install -f -g awscli
aws --aws --version
else
brew reinstall awscli
brew unlink awscli && brew link awscli
aws --aws --version
fi
# ------------------------------------------------------------------------------
e_pending "Install local AWS emulator"
# ------------------------------------------------------------------------------
if test ! $(which awslocal); then
brew install localstack
else
brew reinstall localstack
fi
# ------------------------------------------------------------------------------
e_pending "install and setup gimme-aws-creds"
# ------------------------------------------------------------------------------
# install and setup gimme-aws-creds
if test ! $(which gimme-aws-creds); then
echo "------------------------------"
echo "TODO: Update .aws/ with your AWS credentials and region, or run aws --configure."
brew install gimme-aws-creds
echo "TODO: Update .aws/ with your AWS credentials and region, or run aws --configure."
# gimme-aws-creds --action-configure
# gimme-aws-creds --profile work
# echo "Script completed."
# else
# gimme-aws-creds upgrade
# fi
if test ! $(which cdk); then
brew install aws-cdk
else
brew reinstall aws-cdk
fi
if test ! $(which sam); then
brew tap aws/tap
brew install aws-sam-cli
else
brew reinstall aws-sam-cli
fi
# if test ! $(which amplify); then
# curl -sL https://aws-amplify.github.io/amplify-cli/install | bash && $SHELL
# else
# curl -sL https://aws-amplify.github.io/amplify-cli/install | bash && $SHELL
# fi
pip3 install cfn-lint
pip3 install pydot