Menu
AWS Greengrass
Developer Guide

Updating the Connectivity Information Service

The Connectivity Information Service (CIS) stores the connectivity information for the AWS Greengrass core associated with your group. In order for your AWS IoT devices to connect to a AWS Greengrass core, they need to discover the connectivity information associated with the AWS Greengrass core. Use the update-connectivity-info CLI command to update the location of the AWS Greengrass core:

Copy
aws greengrass update-connectivity-info --thing-name "<CoreThingName>" --connectivity-info '[ { "Id": "<ConnectivityInfoElementId>", "HostAddress": "<CoreEndpoint>", "PortNumber": <port>, "Metadata": "<description>" }]'
--thing-name

The name of your AWS Greengrass core AWS IoT thing (for example, GGC_Thing).

--connectivity-info

Connectivity infomation for the AWS Greengrass core:

Id

The element ID for this entry in the list.

HostAddress

The IP address of your AWS Greengrass core.

PortNumber

The port for your AWS Greengrass core (for example, 8883).

Metadata

Custom data. Optional.

The output of the update-connectivity-info CLI command will look like this:

Copy
{ "Version": "6ffc9b20-4ce0-427e-9c8c-403459f92d02" }