Integrate TeamViewer IoT with AWS IoT Greengrass

October 9, 2020
TeamViewer IoT Documentation

Publish and subscribe data from the edge device to your AWS IoT Greengrass platform and vice-versa.

To accomplish this task you need to follow the steps in this article:

  1. Create AWS IoT Greengrass group
  2. Install and Start AWS IoT Greengrass on the Edge Device
  3. Start AWS IoT Greengrass on the Edge Device

What you will need

Make sure that you have prepared the following points:

Create AWS IoT Greengrass group


An AWS IoT Greengrass group contains settings and other information about its components, such as devices, Lambda functions, and connectors. A group defines how its components can interact with each other.

  1. On your PC sign in to AWS Management Console and open the AWS IoT console.
  2. From the left menu click Greengrass.
  1. On the Welcome to AWS IoT Greengrass page, click Create a Group.
  2. To allow the console to create or configure the Greengrass service role for you click Grant permission.
  1. On the Set up your Greengrass group page, select Use default creation to create a group.
  1. Enter a name for your group (for example, MyFirstGroup), and then click Next.
  2. On the Review Group creation page, select Create Group and Core.
  3. Download your core’s security resources and configuration file. On the confirmation page, under Download and store your Core’s security resources, choose Download these resources as a tar.gz.
The name of your downloaded tar.gz file starts with a 10-digit hash that’s also used for the certificate and key file names.
Download the security resources before you click Finish.
  1. After the download click Finish.

Install AWS IoT Greengrass on the Edge Device

You need the security resources which you have downloaded when creating an AWS IoT Greengrass group.


  1. Download the AWS IoT Greengrass Core software installation package. select the CPU architecture and distribution (and operating system, if necessary) that best describe your core device.
    • For Raspberry Pi Model B or B+, download the Armv7l for Raspbian package.
    • For an Amazon EC2 instance, download the x86_64 for Linux package.
  2. Use Transfer Files to transfer the AWS IoT Greengrass Core software (greengrass-XXXXXX.tar.gz) and the security resources YYYYYY-setup.tar.gzto the user folder on the edge device (default /home/pi/).
  3. Access the edge device remotely (Access the Edge Device via Remote Terminal).
  4. Navigate to the user folder on the edge device where you transferred the files.
  5. To decompress the files type in the following commands and press enter:
sudo tar -xzvf greengrass-OS-architecture-1.10.0.tar.gz -C
sudo tar -xzvf hash-setup.tar.gz -C /greengrass
  1. To download the ATS root CA certificate type in the following command and press enter:
cd /greengrass/certs/ sudo wget -O
We recommend that you use Amazon Trust Services (ATS) endpoints and ATS root CA certificates. Certificates enable your device to communicate with AWS IoT using the MQTT messaging protocol over TLS.
  1. Start AWS IoT Greengrass on your edge device type in the following commands and press enter:
cd /greengrass/ggc/core/
sudo ./greengrassd start
  1. When the message “Greengrass successfully started” is displayed take a note of the PID-number.
  2. To check if the AWS IoT Greengrass daemon is functioning type in the following command and press enter. Replace PID with the PID-number from the previous step.
ps aux | grep PID

Related posts

Want more? Exclusive deals, the latest news: Our Newsletter!