CmdID / aws / aws greengrass
aws greengrass update-connectivity-info
Updates the connectivity information for the core. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To update the connectivity information for a Greengrass core
The following update-connectivity-info example changes the endpoints that devices can use to connect to the specified Greengrass core. Connectivity information is a list of IP addresses or domain names, with corresponding port numbers and optional customer-defined metadata. You might need to update connectivity information when the local network changes.
aws greengrass update-connectivity-info --thing-name "MyGroup_Core" --connectivity-info "[{\"Metadata\":\"\",\"PortNumber\":8883,\"HostAddress\":\"127.0.0.1\",\"Id\":\"localhost_127.0.0.1_0\"},{\"Metadata\":\"\",\"PortNumber\":8883,\"HostAddress\":\"192.168.1.3\",\"Id\":\"localIP_192.168.1.3\"}]"Identify--thing-nameThe thing name.--connectivity-infoA list of connectivity info.Its output
{
"Version": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
}For more information, see Configure the MQTT port for local messaging in the AWS IoT Greengrass Version 1 Developer Guide.
Options
--connectivity-infoA list of connectivity info.--thing-nameThe thing name.