Skip to content

Instantly share code, notes, and snippets.

@wongcyrus
Last active November 21, 2023 18:29
Show Gist options
  • Save wongcyrus/8eaddcc155aec4cdb451178fb5cbc2b8 to your computer and use it in GitHub Desktop.
Save wongcyrus/8eaddcc155aec4cdb451178fb5cbc2b8 to your computer and use it in GitHub Desktop.
Install AWS SAM CLI in Cloud9
# Change to default Python3
alias python='python3'
python --version
# Install Code Formatter for Python and you need to set AWS Cloud9「Preferences」->「Python Support」->「Custom Code Formatter」
# yapf -i "$file"
sudo pip install yapf
sudo yum -y update
sudo yum -y install aws-cli
sudo -H pip install awscli --upgrade
# Install brew and update SAM CLI to the latest version.
sudo ln -s /bin/touch /usr/bin/touch
yes | sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)
test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile
echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile
brew --version
brew tap aws/tap
brew install aws-sam-cli
sam --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment