CmdID / aws / aws greengrassv2
aws greengrassv2 update-connectivity-info
Updates connectivity information for a Greengrass core device. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To update connectivity information for a Greengrass core device
The following update-connectivity-info example gets the connectivity information for a Greengrass core device. Client devices use this information to connect to the MQTT broker that runs on this core device.
aws greengrassv2 update-connectivity-info --thing-name MyGreengrassCore --cli-input-json file://core-device-connectivity-info.jsonIdentify--thing-nameThe name of the core device.Contents of core-device-connectivity-info.json:
{
"connectivityInfo": [
{
"hostAddress": "192.0.2.0",
"portNumber": 8883,
"id": "localIP_192.0.2.0"
}
]
}
Its output
{
"version": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
}For more information, see Manage core device endpoints in the AWS IoT Greengrass V2 Developer Guide.
Options
--connectivity-infoThe connectivity information for the core device.--thing-nameThe name of the core device.