In this step, you will set up AWS Cloud9.
Use the same region during the workshop.
Create environmentin the top right corner of the Cloud9 dashboard
Nameto delete it after the workshop (e.g.
Environment type: Select
Create a new EC2 instance for environment (direct access)
Instance type: Select
Ubuntu Server 18.04 LTS
Cost-saving setting: Select
After four hours
Next stepat the bottom of the screen
Create environmentto start the Cloud9 environment, then wait a minute or two for it to start
Network settings (advanced), select a subnet of the default VPC.
If the default VPC does not exist, create the VPC and subnet as follows
VPC settings for AWS Cloud9 Development Environments.
At the bottom of the screen, you can see
Admin:~/environment $, which is the Cloud9 (EC2) terminal.
All of the following commands must be executed in a Cloud 9 terminal.
Execute the following commands to update the package list and install the libraries needed to build the SDK.
sudo apt update sudo apt install -y cmake gstreamer1.0-plugins-bad gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-tools libgstreamer-plugins-base1.0-dev
Connecting...while the instance is restarting.
wget https://awsj-iot-handson.s3-ap-northeast-1.amazonaws.com/kvs-workshop/resize_volume.sh chmod +x resize_volume.sh ./resize_volume.sh
In the result of the command, make sure that
/ is 20GB as follows.
Filesystem Size Used Avail Use% Mounted on /dev/xvda1 20G 8.3G 12G 43% /
That’s all. You set up a Cloud9 environment. Next, we will proceed to install the SDK.