aws.greengrassv2.list_installed_components
Example SQL Queries
SELECT * FROMaws.greengrassv2.list_installed_componentsWHERE"core_device_thing_name" = 'VALUE';Description
Retrieves a paginated list of the components that a Greengrass core device runs. By default, this list doesn't include components that are deployed as dependencies of other components. To include dependencies in the response, set the topologyFilter parameter to ALL.
IoT Greengrass relies on individual devices to send status updates to the Amazon Web Services Cloud. If the IoT Greengrass Core software isn't running on the device, or if device isn't connected to the Amazon Web Services Cloud, then the reported status of that device might not reflect its current status. The status timestamp indicates when the device status was last updated.
Core devices send status updates at the following times:
When the IoT Greengrass Core software starts
When the core device receives a deployment from the Amazon Web Services Cloud
When the status of any component on the core device becomes BROKEN
At a regular interval that you can configure, which defaults to 24 hours
For IoT Greengrass Core v2.7.0, the core device sends status updates upon local deployment and cloud deployment
Table Definition
| Column Name | Column Data Type |
|---|---|
| core_device_thing_name Required Input Column The name of the core device. This is also the name of the IoT thing. | VARCHAR |
| topology_filter Input Column The filter for the list of components. Choose from the following options:
Default: ROOT | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| component_name The name of the component. | VARCHAR |
| component_version The version of the component. | VARCHAR |
| is_root Whether or not the component is a root component. | BOOLEAN |
| last_installation_source The most recent deployment source that brought the component to the Greengrass core device. For a thing group deployment or thing deployment, the source will be the ID of the last deployment that contained the component. For local deployments it will be LOCAL. Any deployment will attempt to reinstall currently broken components on the device, which will update the last installation source. | VARCHAR |
| last_reported_timestamp The last time the Greengrass core device sent a message containing a component's state to the Amazon Web Services Cloud. A component does not need to see a state change for this field to update. | TIMESTAMP_S |
| last_status_change_timestamp The status of how current the data is. This response is based off of component state changes. The status reflects component disruptions and deployments. If a component only sees a configuration update during a deployment, it might not undergo a state change and this status would not be updated. | TIMESTAMP_S |
| lifecycle_state The lifecycle state of the component. | VARCHAR |
| lifecycle_state_details A detailed response about the lifecycle state of the component that explains the reason why a component has an error or is broken. | VARCHAR |
| lifecycle_status_codes The status codes that indicate the reason for failure whenever the lifecycleState has an error or is in a broken state. Greengrass nucleus v2.8.0 or later is required to get an accurate lifecycleStatusCodes response. This response can be inaccurate in earlier Greengrass nucleus versions. | VARCHAR[] |
Show child fields
| |