Skip to content

Error with AWS Greengrass V2 get-connectivity-info command

0

Hello! I wanna get connectivity info from one device core with greengrass v2 but when I execute the command: aws greengrassv2 get-connectivity-info --thing-name {device_name}

I got the error: An error occurred (404) when calling the GetConnectivityInfo operation: We do not have connectivity information for this GGC.

I try this with others device core but it results in the same error.

1 Answer
1

I apologize for the confusion, but it appears there's a misunderstanding in your approach. The error you're encountering is because the command you're trying to use is not applicable to AWS IoT Greengrass V2.

The get-connectivity-info command is specific to AWS IoT Greengrass V1, not V2. In Greengrass V2, the architecture and communication model have changed, and this specific command is no longer relevant.

For Greengrass V2, connectivity information is handled differently. Instead of using a specific command to retrieve connectivity info, Greengrass V2 uses a discovery API that client devices can call to get information about core devices they can connect to.

If you're trying to connect client devices to Greengrass V2 core devices, you should use the AWS IoT Greengrass discovery API. This API returns connectivity information for all core devices that a client device can connect to, including endpoints and ports for the MQTT broker on the core device.

To troubleshoot connectivity issues in Greengrass V2:

  1. Ensure your core device can connect to the internet and AWS IoT Core.
  2. Verify that your core device's AWS IoT thing uses a certificate with the necessary permissions (iot:Connect, iot:Publish, iot:Receive, and iot:Subscribe).
  3. If using a network proxy, check that your core device has a device role with the required permissions.

If you're migrating from Greengrass V1 to V2, be aware that some commands and APIs have changed. It's recommended to review the AWS IoT Greengrass V2 documentation for the most up-to-date information on managing and interacting with your Greengrass devices.
Sources
GetConnectivityInfo - AWS IoT Greengrass
Troubleshooting AWS IoT Greengrass V2 - AWS IoT Greengrass

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.