AWS — Quick setup

Arun Kumar
Cloud Techies
1 min readMay 3, 2021

--

Steps

  • Install python
brew install python
ls -l /usr/local/bin/python*
ln -s -f /usr/local/bin/python3.9 /usr/local/bin/python
  • Install aws-cli
curl “https://awscli.amazonaws.com/AWSCLIV2.pkg" -o “AWSCLIV2.pkg”
sudo installer -pkg AWSCLIV2.pkg -target /
which aws
aws --version
  • Install and configure git.
brew install git
git --version
git config --global user.name “<your username>”
git config --global user.email “<your mail id>”
git config --global credential.helper osxkeychain
  • Setup any text editor like Sublime Text. Here I setup Sublime Text as the Git Mergetool.
git config --global mergetool.sublime.cmd “subl -w \$MERGED”
git config --global mergetool.sublime.trustExitCode false
git config --global merge.tool sublime
git mergetool -y
  • Configure Visual Studio Code
brew install --cask visual-studio-code
echo “export PATH=”$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin”” >> ~/.bash_profile
code .
code <filename>
  • Configure your bash profile.
git config --global core.excludesfile ~/.gitignore
brew install bash-completion
echo “[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion” >> ~/.bash_profile
source ~/.bash_profile
git clone <git-repo-url>
  • Set alias
echo -e ‘if command -v pyenv 1>/dev/null 2>&1; then\n eval “$(pyenv init -)”\nfi’ >> ~/.zshrc
alias python=/usr/local/bin/python3
echo “alias python=/usr/local/bin/python3” >> ~/.zshrcecho “alias pip=/usr/bin/pip3” >> ~/.zshrc
  • Create necessary hard link (optional).
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
subl <filename>

--

--

Arun Kumar
Cloud Techies

Cloud Architect | AWS, GCP, Azure, Python, Kubernetes, Terraform, Ansible