Integrate TeamViewer IoT with AWS IoT Greengrass - TeamViewer Support
<main>
<article class="userContent">
<p><br></p><p>Publish and subscribe data from the edge device to your AWS IoT Greengrass platform and vice-versa.</p><p>To accomplish this task you need to follow the steps in this article:</p><ol><li>Create AWS IoT Greengrass group</li><li>Install and Start AWS IoT Greengrass on the Edge Device</li><li>Start AWS IoT Greengrass on the Edge Device</li></ol><p><br></p><h3></h3><h2 data-id="what-you-will-need">What you will need</h2><p>Make sure that you have prepared the following points:</p><ul><li>Your TeamViewer credentials.</li><li>Your AWS Greengrass credentials.</li><li>The edge device is set up with a TeamViewer IoT Agent and <a href="https://community.teamviewer.com/English/kb/articles/109819-edge-management" rel="nofollow noreferrer ugc">TeamViewer Edge Management is enabled</a>.</li><li>The edge device is connected to the internet.</li><li>File Transfer is enabled (see <a href="https://community.teamviewer.com/English/kb/articles/109865-enable-file-transfer" rel="nofollow noreferrer ugc">Enable File Transfer</a>).</li><li><a href="https://community.teamviewer.com/English/kb/articles/109829-access-the-edge-device-via-remote-terminal" rel="nofollow noreferrer ugc">Access the Edge Device via Remote Terminal</a>.</li></ul><p><br></p><h3 data-id="-1"></h3><h2 data-id="create-aws-iot-greengrass-group">Create AWS IoT Greengrass group</h2><p> An AWS IoT Greengrass <a href="https://docs.aws.amazon.com/greengrass/latest/developerguide/what-is-gg.html#gg-group" rel="nofollow noreferrer ugc">group</a> 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.</p><p>1. On your PC sign in to <a href="https://console.aws.amazon.com/" rel="nofollow noreferrer ugc">AWS Management Console</a> and open the AWS IoT console.</p><p>2. From the left menu click <strong>Greengrass</strong>.</p><div class="embedExternal embedImage display-medium float-none">
<div class="embedExternal-content">
<a class="embedImage-link" href="https://us.v-cdn.net/6032394/uploads/7M1FQOS5V29G/integrate-aws-select-greengrass.png" rel="nofollow noreferrer noopener ugc" target="_blank">
<img class="embedImage-img" src="https://us.v-cdn.net/6032394/uploads/7M1FQOS5V29G/integrate-aws-select-greengrass.png" alt="integrate-aws-select-greengrass.png" height="278" width="244" loading="lazy" data-display-size="medium" data-float="none" srcset="https://us.v-cdn.net/cdn-cgi/image/fit=scale-down,width=10/https://us.v-cdn.net/6032394/uploads/7M1FQOS5V29G/integrate-aws-select-greengrass.png 10w, https://us.v-cdn.net/cdn-cgi/image/fit=scale-down,width=300/https://us.v-cdn.net/6032394/uploads/7M1FQOS5V29G/integrate-aws-select-greengrass.png 300w, https://us.v-cdn.net/cdn-cgi/image/fit=scale-down,width=800/https://us.v-cdn.net/6032394/uploads/7M1FQOS5V29G/integrate-aws-select-greengrass.png 800w, https://us.v-cdn.net/cdn-cgi/image/fit=scale-down,width=1200/https://us.v-cdn.net/6032394/uploads/7M1FQOS5V29G/integrate-aws-select-greengrass.png 1200w, https://us.v-cdn.net/cdn-cgi/image/fit=scale-down,width=1600/https://us.v-cdn.net/6032394/uploads/7M1FQOS5V29G/integrate-aws-select-greengrass.png 1600w, https://us.v-cdn.net/6032394/uploads/7M1FQOS5V29G/integrate-aws-select-greengrass.png"></img></a>
</div>
</div>
<p>3. On the <strong>Welcome to AWS IoT Greengrass</strong> page, click <strong>Create a Group</strong>.</p><p>4. To allow the console to create or configure the Greengrass service role for you click <strong>Grant permission</strong>.</p><div class="embedExternal embedImage display-large float-none">
<div class="embedExternal-content">
<a class="embedImage-link" href="https://us.v-cdn.net/6032394/uploads/RDFYKNEUI5FA/integrate-aws-grant-permission.png" rel="nofollow noreferrer noopener ugc" target="_blank">
<img class="embedImage-img" src="https://us.v-cdn.net/6032394/uploads/RDFYKNEUI5FA/integrate-aws-grant-permission.png" alt="integrate-aws-grant-permission.png" height="449" width="999" loading="lazy" data-display-size="large" data-float="none" srcset="https://us.v-cdn.net/cdn-cgi/image/fit=scale-down,width=10/https://us.v-cdn.net/6032394/uploads/RDFYKNEUI5FA/integrate-aws-grant-permission.png 10w, https://us.v-cdn.net/cdn-cgi/image/fit=scale-down,width=300/https://us.v-cdn.net/6032394/uploads/RDFYKNEUI5FA/integrate-aws-grant-permission.png 300w, https://us.v-cdn.net/cdn-cgi/image/fit=scale-down,width=800/https://us.v-cdn.net/6032394/uploads/RDFYKNEUI5FA/integrate-aws-grant-permission.png 800w, https://us.v-cdn.net/cdn-cgi/image/fit=scale-down,width=1200/https://us.v-cdn.net/6032394/uploads/RDFYKNEUI5FA/integrate-aws-grant-permission.png 1200w, https://us.v-cdn.net/cdn-cgi/image/fit=scale-down,width=1600/https://us.v-cdn.net/6032394/uploads/RDFYKNEUI5FA/integrate-aws-grant-permission.png 1600w, https://us.v-cdn.net/6032394/uploads/RDFYKNEUI5FA/integrate-aws-grant-permission.png"></img></a>
</div>
</div>
<p>5. On the <strong>Set up your Greengrass group</strong> page, select <strong>Use default creation</strong> to create a group.</p><div class="embedExternal embedImage display-large float-none">
<div class="embedExternal-content">
<a class="embedImage-link" href="https://us.v-cdn.net/6032394/uploads/T8SNJOHF8BJL/integrate-aws-use-default-creation.png" rel="nofollow noreferrer noopener ugc" target="_blank">
<img class="embedImage-img" src="https://us.v-cdn.net/6032394/uploads/T8SNJOHF8BJL/integrate-aws-use-default-creation.png" alt="integrate-aws-use-default-creation.png" height="587" width="999" loading="lazy" data-display-size="large" data-float="none" srcset="https://us.v-cdn.net/cdn-cgi/image/fit=scale-down,width=10/https://us.v-cdn.net/6032394/uploads/T8SNJOHF8BJL/integrate-aws-use-default-creation.png 10w, https://us.v-cdn.net/cdn-cgi/image/fit=scale-down,width=300/https://us.v-cdn.net/6032394/uploads/T8SNJOHF8BJL/integrate-aws-use-default-creation.png 300w, https://us.v-cdn.net/cdn-cgi/image/fit=scale-down,width=800/https://us.v-cdn.net/6032394/uploads/T8SNJOHF8BJL/integrate-aws-use-default-creation.png 800w, https://us.v-cdn.net/cdn-cgi/image/fit=scale-down,width=1200/https://us.v-cdn.net/6032394/uploads/T8SNJOHF8BJL/integrate-aws-use-default-creation.png 1200w, https://us.v-cdn.net/cdn-cgi/image/fit=scale-down,width=1600/https://us.v-cdn.net/6032394/uploads/T8SNJOHF8BJL/integrate-aws-use-default-creation.png 1600w, https://us.v-cdn.net/6032394/uploads/T8SNJOHF8BJL/integrate-aws-use-default-creation.png"></img></a>
</div>
</div>
<p>6. Enter a name for your group (for example, <code class="code codeInline" spellcheck="false" tabindex="0">MyFirstGroup</code>), and then click <strong>Next</strong>.</p><p>7. On the <strong>Review Group creation</strong> page, select <strong>Create Group and Core</strong>.</p><p>8. Download your core’s security resources and configuration file. On the confirmation page, under <strong>Download and store your Core’s security resources</strong>, choose <strong>Download these resources as a tar.gz</strong>.</p><p>📌<strong>Notes:</strong></p><ul><li>The name of your downloaded <code class="code codeInline" spellcheck="false" tabindex="0">tar.gz</code> file starts with a 10-digit hash that’s also used for the certificate and key file names.</li><li>Download the security resources before you click <strong>Finish</strong>.</li></ul><div class="embedExternal embedImage display-large float-none">
<div class="embedExternal-content">
<a class="embedImage-link" href="https://us.v-cdn.net/6032394/uploads/HD89MGDZTY48/integrate-aws-use-download-config.png" rel="nofollow noreferrer noopener ugc" target="_blank">
<img class="embedImage-img" src="https://us.v-cdn.net/6032394/uploads/HD89MGDZTY48/integrate-aws-use-download-config.png" alt="integrate-aws-use-download-config.png" height="407" width="979" loading="lazy" data-display-size="large" data-float="none" srcset="https://us.v-cdn.net/cdn-cgi/image/fit=scale-down,width=10/https://us.v-cdn.net/6032394/uploads/HD89MGDZTY48/integrate-aws-use-download-config.png 10w, https://us.v-cdn.net/cdn-cgi/image/fit=scale-down,width=300/https://us.v-cdn.net/6032394/uploads/HD89MGDZTY48/integrate-aws-use-download-config.png 300w, https://us.v-cdn.net/cdn-cgi/image/fit=scale-down,width=800/https://us.v-cdn.net/6032394/uploads/HD89MGDZTY48/integrate-aws-use-download-config.png 800w, https://us.v-cdn.net/cdn-cgi/image/fit=scale-down,width=1200/https://us.v-cdn.net/6032394/uploads/HD89MGDZTY48/integrate-aws-use-download-config.png 1200w, https://us.v-cdn.net/cdn-cgi/image/fit=scale-down,width=1600/https://us.v-cdn.net/6032394/uploads/HD89MGDZTY48/integrate-aws-use-download-config.png 1600w, https://us.v-cdn.net/6032394/uploads/HD89MGDZTY48/integrate-aws-use-download-config.png"></img></a>
</div>
</div>
<p>9. After the download click <strong>Finish</strong>.</p><p><br></p><h3 data-id="-2"></h3><h2 data-id="install-aws-iot-greengrass-on-the-edge-device">Install AWS IoT Greengrass on the edge device</h2><p>You need the <strong>security resources</strong> which you have downloaded when <a href="https://community.teamviewer.com/English/kb/articles/109868-integrate-teamviewer-iot-with-aws-iot-greengrass" rel="nofollow noreferrer ugc">creating an AWS IoT Greengrass group</a>.</p><p> </p><p>1. Download the <a href="https://docs.aws.amazon.com/greengrass/latest/developerguide/what-is-gg.html#gg-core-download-tab" rel="nofollow noreferrer ugc"><strong>AWS IoT Greengrass Core software</strong></a> installation package. select the CPU architecture and distribution (and operating system, if necessary) that best describe your core device.</p><ul><li>For an Amazon EC2 instance, download the x86_64 for Linux package.</li><li>For Raspberry Pi Model B or B+, download the Armv7l for Raspbian package.</li></ul><p>2. Use <a href="https://community.teamviewer.com/English/kb/articles/109866-transfer-files" rel="nofollow noreferrer ugc">Transfer Files</a> to transfer the <strong>AWS IoT Greengrass Core software</strong> (<code class="code codeInline" spellcheck="false" tabindex="0">greengrass-XXXXXX.tar.gz</code>) and the <strong>security resources</strong> <code class="code codeInline" spellcheck="false" tabindex="0">YYYYYY-setup.tar.gz</code>to the <strong>user folder on the edge device</strong> (default <code class="code codeInline" spellcheck="false" tabindex="0">/home/pi/</code>).</p><p>3. Access the edge device remotely (<a href="https://community.teamviewer.com/English/kb/articles/109829-access-the-edge-device-via-remote-terminal" rel="nofollow noreferrer ugc">Access the Edge Device via Remote Terminal</a>).</p><p>4. Navigate to the user folder on the edge device where you transferred the files.</p><p>5. To decompress the files type in the following commands and press enter:</p><pre class="code codeBlock" spellcheck="false" tabindex="0">sudo tar -xzvf greengrass-OS-architecture-1.10.0.tar.gz -C
sudo tar -xzvf hash-setup.tar.gz -C /greengrass
</pre><p>6. To download the ATS root CA certificate type in the following command and press enter:</p><pre class="code codeBlock" spellcheck="false" tabindex="0">cd /greengrass/certs/ sudo wget -O root.ca.pem https://www.amazontrust.com/repository/AmazonRootCA1.pem
</pre><p>📌<strong>Note:</strong> 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.</p><p>7. Start AWS IoT Greengrass on your edge device type in the following commands and press enter:</p><pre class="code codeBlock" spellcheck="false" tabindex="0">cd /greengrass/ggc/core/
sudo ./greengrassd start
</pre><p>8. When the message “Greengrass successfully started” is displayed take a note of the <strong>PID-number</strong>.</p><p>9. To check if the AWS IoT Greengrass daemon is functioning type in the following command and press enter. Replace <code class="code codeInline" spellcheck="false" tabindex="0">PID</code> with the PID-number from the previous step.</p><pre class="code codeBlock" spellcheck="false" tabindex="0">ps aux | grep PID
</pre><p><br></p><h3 data-id="-3"></h3>
</article>
</main>