Last active
November 21, 2023 18:29
-
-
Save wongcyrus/8eaddcc155aec4cdb451178fb5cbc2b8 to your computer and use it in GitHub Desktop.
Install AWS SAM CLI in Cloud9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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