Following this announcement of Raspbian OS Raspberry Pi support in the AWS Simple Systems Manager (SSM) service, I've been looking into using it to manage a fleet of Raspberry Pi devices. There's one scenario in particular I'm not sure how to handle, or if it is even possible to handle with SSM.
For my particular situation, I want to send someone an IoT device built on a Raspberry Pi board. The first time the device is powered up I want it to automatically download the latest updates. Let's say for this example I've used the SSM service to push two updates to the device fleet while this newest device was being shipped to the end user. How can I configure the SSM service to automatically detect and install those two pending updates as soon as the new device is powered up?
Is this possible using the SSM service? Would it be a function of the Patch Management feature, or the State Management feature?
SSM Patch Manager does not support patching of Raspbian today. However, you can still remotely patch your device using State Manager.
There are three steps to doing this: 1) Once you register your Raspberry Pi device as an SSM on-premises server, you can tag it using the add-tags-to-resource API.
2) Create or use an existing SSM Document to script your patching process.
3) Create a State Manager Association against that tag, and when a new device is added to that tag the Association is applied automatically to bootstrap the device.
Hope this helps!