Open main menu

DAVE Developer's Wiki β

Changes

MISC-TN-005: Running AWS Greengrass Core on SBCSPG

3,724 bytes added, 09:52, 7 August 2019
Configuring AWS Greengrass on cloud side and intalling GGC on the edge device
</pre>
==Configuring AWS Greengrass on the cloud side and intalling installing GGC on the edge device==Module 2 of the ''Getting started guide'' details how to setup the Greengrass service on the cloud side. At the end of this step, a file has to be downloaded containing Core's security resources, which will be installed on the edge device.
It looks like Once created the group, disable the default Lamba functions containerization, as stated previously. At the kernel uses end of this step, a file has to be downloaded containing Core'systemd' as s security resources, which will be installed on the init processedge device. Be sure This archive also contains ''configuration information specific to set your AWS IoT Greengrass core and theAWS IoT endpoint'useSystemd' field , stored in the file '<code>config.json</code>. After uncompressing it onto the SBCSPG, please verify that the <code>useSystemd</code> in <code>config.json</code> is set to ' to 'yes' when configuring '. If everything is configured properly, after staring Greengrass Core daemon, you should see something like this in the <code>/greengrass/ggc/var/log/system/runtime.log</code> [2019-08-07T11:41:01.127+02:00][INFO]-===========================================[2019-08-07T11:41:01.127+02:00][INFO]-Greengrass Version: 1.9.2-RC4[2019-08-07T11:41:01.127+02:00][INFO]-Greengrass Root: /greengrass[2019-08-07T11:41:01.127+02:00][INFO]-Greengrass Write Directory: /greengrass/ggc[2019-08-07T11:41:01.127+02:00][INFO]-Group File Directory: /greengrass/ggc/deployment/group[2019-08-07T11:41:01.127+02:00][INFO]-Default Lambda UID: 109[2019-08-07T11:41:01.127+02:00][INFO]-Default Lambda GID: 114[2019-08-07T11:41:01.13+02:00][INFO]-===========================================[2019-08-07T11:41:01.131+02:00][INFO]-The current coreis using the AWS IoT certificates with fingerprint. {"fingerprint": "3805f49f1af9e764b3ae8ca87f8ec43d7b94d1e3f05494fa166f6d3abbe14015"}[2019-08-07T11:41:01.133+02:00][INFO]-Will persist worker process info. {"dir": "/greengrass/ggc/packages/1.9.2/var/worker/processes"}[2019-08-07T11:41:01.135+02:00][INFO]-Will persist worker process info. {"dir": "/greengrass/ggc/packages/1.9.2/var/worker/processes"}[2019-08-07T11:41:01.14+02:00][INFO]-Subscription added to the system {"source": "arn:aws:lambda:us-east-2:504613037555:function:Greengrass_HelloWorld:1", "sourceType": 0, "subject": "hello/world", "target": "cloud", "targetType": 2}[2019-08-07T11:41:01.155+02:00][INFO]-The current core is using the AWS IoT certificates with fingerprint. {"fingerprint": "3805f49f1af9e764b3ae8ca87f8ec43d7b94d1e3f05494fa166f6d3abbe14015"}[2019-08-07T11:41:01.171+02:00][INFO]-No proxy URL found.[2019-08-07T11:41:01.213+02:00][INFO]-Started Deployment Agent to listen for updates.[2019-08-07T11:41:01.22+02:00][INFO]-Created worker. {"functionArn": "arn:aws:lambda:::function:GGDeviceCertificateManager", "workerId": "7c195254-cd25-4389-75d4-267b9cbd5bd7", "pid": 1600}[2019-08-07T11:41:01.224+02:00][INFO]-Connecting with MQTT. {"endpoint": "a15axy3tr9fuwq-ats.iot.us-east-2.amazonaws.com:8883", "clientId": "SBCSPG_grp0_Core"}[2019-08-07T11:41:01.495+02:00][WARN]-[5]GK Remote: Error retrieving public key data: ErrPrincipalNotConfigured: private key for MqttCertificate is not set[2019-08-07T11:41:01.595+02:00][INFO]-Created worker. {"functionArn": "arn:aws:lambda:::function:GGIPDetector:1", "workerId": "ff88e76a-9ca4-459f-7e20-689800240635", "pid": 1614}[2019-08-07T11:41:02.057+02:00][INFO]-Created worker. {"functionArn": "arn:aws:lambda:::function:GGConnManager", "workerId": "7e719557-11c0-4e47-4532-1d9eb06129fd", "pid": 1625}[2019-08-07T11:41:02.329+02:00][INFO]-Created worker. {"functionArn": "arn:aws:lambda:::function:GGCloudSpooler:1", "workerId": "8ae31447-0295-4ae8-450a-872305ce315b", "pid": 1636}[2019-08-07T11:41:02.338+02:00][WARN]-[5]GK Remote: Error retrieving public key data: ErrPrincipalNotConfigured: private key for MqttCertificate is not set[2019-08-07T11:41:02.428+02:00][INFO]-MQTT connection successful. {"attemptId": "uIzF", "clientId": "SBCSPG_grp0_Core"}[2019-08-07T11:41:02.428+02:00][INFO]-MQTT connection established. {"endpoint": "a15axy3tr9fuwq-ats.iot.us-east-2.amazonaws.com:8883", "clientId": "SBCSPG_grp0_Core"}[2019-08-07T11:41:02.429+02:00][INFO]-MQTT connection connected. Start subscribing. {"clientId": "SBCSPG_grp0_Core"}[2019-08-07T11:41:02.429+02:00][INFO]-Deployment agent connected to cloud.
==Deploying the test Lambda function to the edge device==
4,650
edits