Deploy ML models to Arm edge devices using Edge Impulse and AWS IoT Greengrass
Introduction
Understand the Edge Impulse and AWS IoT Greengrass deployment architecture
Select and set up your edge device
Set up your Edge Impulse project
Install AWS IoT Greengrass on your Arm edge device
Store your Edge Impulse API key in AWS Secrets Manager
Create the Edge Impulse Greengrass component
Deploy the component to your edge device
Verify inference and view results
Next Steps
Deploy ML models to Arm edge devices using Edge Impulse and AWS IoT Greengrass
Introduction
Understand the Edge Impulse and AWS IoT Greengrass deployment architecture
Select and set up your edge device
Set up your Edge Impulse project
Install AWS IoT Greengrass on your Arm edge device
Store your Edge Impulse API key in AWS Secrets Manager
Create the Edge Impulse Greengrass component
Deploy the component to your edge device
Verify inference and view results
Next Steps
Why you’ll use AWS Secrets Manager
The Edge Impulse Greengrass component needs your Edge Impulse API key to download and run your ML model. Rather than hard-coding the key in the component configuration, you’ll store the API key in AWS Secrets Manager. The component retrieves the key securely at runtime, which keeps it out of configuration files and makes rotation straightforward.
The component expects two specific values:
- A secret with the ID
EI_API_KEY(the name that you give the secret in Secrets Manager). - A key-value pair inside that secret where the key is
ei_api_keyand the value is your actual API key.
These names must match the ei_sm_secret_id and ei_sm_secret_name fields in the component configuration JSON that you saved during hardware setup.
Create the secret
Earlier, you generated an API key in Edge Impulse Studio and saved it. Now, store that key in AWS Secrets Manager.
To save the API key as a secret:
- Open the AWS Console and navigate to Secrets Manager.
- Select Store a new secret.
- Select Other type of secret as the secret type.
- In the Key field, enter
ei_api_key. - In the Value field, paste the API key that you copied from Edge Impulse Studio.
- Select Next.
- For Secret name, enter
EI_API_KEY. - Select Next.
- Leave the rotation settings at their defaults and select Next.
- Review the configuration and select Store.
Store a new secret in AWS Secrets Manager
After storing the secret, verify it by selecting EI_API_KEY in the Secrets Manager list and confirming that the key-value pair is present.
What you’ve accomplished and what’s next
You’ve securely stored your Edge Impulse API key in AWS Secrets Manager. The Greengrass component retrieves this key at runtime to authenticate with your Edge Impulse project.
Next, you’ll configure the Edge Impulse custom Greengrass component.