Set up AWS Cloud9

In this step, you will set up AWS Cloud9.

Verify the region

  • Open AWS Cloud9 console
  • From the top right corner of the console, select one of the following regions
    • us-east-1 (N.Virginia), us-west-2 (Oregon), ap-northeast-1 (Tokyo), eu-west-1 (Ireland), eu-central-1 (Frankfurt)
    • Choose the nearest region if there is no special reason

Use the same region during the workshop.

Creating a Cloud9 environment

  • Click the Create environment in the top right corner of the Cloud9 dashboard

Create a Cloud9 environment (Step 1)

  • Enter a descriptive name for the Name to delete it after the workshop (e.g. kvs-workshop-environment)
  • Click on Next step

Create a Cloud9 environment (Step 2~3)

  • Environment type: Select Create a new EC2 instance for environment (direct access)
  • Instance type: Select t3.small
  • Platform: Select Ubuntu Server 18.04 LTS
  • Cost-saving setting: Select After four hours
  • Click on the Next step at the bottom of the screen
  • On the next screen, click on Create environment to start the Cloud9 environment, then wait a minute or two for it to start

Cloud9 Setup

In 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.

Installing the libraries

At the bottom of the screen, you can see Admin:~/environment $, which is the Cloud9 (EC2) terminal.

Cloud9 Setup

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

Disk Space Expansion

  • Execute the following commands in a Cloud9 terminal, it will expand the disk and restart the instance
  • Please wait until the instance is restarted, as you will see Connecting... while the instance is restarting.
chmod +x
  • After the instance restarted, run the following command in the terminal to check the disk space
df -h

In the result of the command, make sure that / is 20GB as follows.

Filesystem      Size  Used Avail Use% Mounted on
/dev/nvme0n1p1   20G  8.4G   11G  44% /

That’s all. You set up a Cloud9 environment. Next, we will proceed to install the SDK.