One of the tools this workshop relies on, is the AWS SAM Command Line Interface. However, we need a newer version than what Cloud9 has pre-installed. The version we are targetting is SAM CLI, version 0.31.1 or greater. We will also need to install a JDK and Maven (tested with Amazon Corretto Java 11(.)
We have put together a bootstrap script that will make the upgrade easier for you. Download it by running the following command from your Cloud9 terminal.
wget https://raw.githubusercontent.com/dixonaws/aws-serverless-cicd-workshop/master/bootstrap.sh
Then give it permissions to execute:
chmod +x bootstrap.sh
And run it:
./bootstrap.sh
One last thing for setup… ensure that the environment variables are loaded:
source ~/.profile
THIS MAY TAKE A FEW MINUTES TO COMPLETE.
Example output:
Run the following command:
sam --version
You should see SAM CLI, version 0.31.1 or greater.
java -version
You should see OpenJDK Runtime Environment Corretto-11.0.6.10.1 or similar.
mvn -version
You should see Maven version 3.6.3 or greater.