python/example_code/greengrass/README.md
Shows how to use the AWS IoT Greengrass Core SDK to create AWS Lambda functions that publish MQTT messages, implement connectors, and retrieve secrets.
These code examples are primarily code snippets that are used in the AWS Iot Greengrass developer guide and are not intended to be used out of context.
These examples are code snippets that are intended to be used in conjunction with the AWS Iot Greengrass developer guide. See the developer guide for setup and usage details.
The example contains the following files.
connector_*.py
Shows how to use different kinds of AWS-provided Greengrass connectors. For more information, see AWS-provided Greengrass connectors.
iot_data_client_*.py
Shows how to use various clients to publish MQTT messages.
local_resource_access_volume.py
Shows how to access local volume resources when running in a Greengrass core instance.
secret_resource_access_*.py
Shows how to retrieve secrets. For more information, see Deploy secrets to the AWS IoT Greengrass core.
To run the tests, run the following in your [GitHub root]/python/example_code/greengrass folder.
python -m pytest
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0