2 Answers
- Newest
- Most votes
- Most comments
3
May referring this:
- Custom Drift Detection Component Deploy a lightweight Greengrass component (e.g., com.example.DriftDetector) that: • Periodically checks the local component list (/greengrass/v2/work/com.aws.greengrass.componentName/). • Compares it to the expected components from the thing group deployment (fetched via ListEffectiveDeployments or ListInstalledComponents). • Detects missing or outdated components.
- Trigger a Redeployment If drift is detected: • Use the AWS SDK (e.g., Python boto3) to call CreateDeployment for the affected thing or thing group. • Optionally, revise the existing deployment with no changes to force a redeploy.
- Automate with CloudWatch or Lambda • Use CloudWatch metrics or IoT Device Defender to monitor component health. • Trigger a Lambda function to initiate redeployment when unhealthy states or drift are detected.
0
For this usecase, you may also want to have different things name for primary and secondary with both of them being on the same thing group. If the disk failure does occur you can see it in the console as well as re-trigger the deployment.
answered 3 hours ago
Relevant content
- asked 2 years ago
- asked 4 years ago