- Newest
- Most votes
- Most comments
Hello, Since you already have an AWS CDK stack for your web app, it would make sense to add the firmware CI/CD pipeline to that same stack. CDK allows you to define all your AWS infrastructure in code, so adding the firmware pipelines keeps everything together.
-
Create a CodePipeline in CDK that sources from your firmware Git repos, builds the code, runs tests, and produces the final firmware binaries. Output these to an S3 bucket or CodeCommit repository.
-
For OTA updates, yes, you can use an S3 bucket to host the latest firmware binary. The device would download from this bucket to update itself.
-
To track versions, you could use S3 object versioning and have the pipeline upload with unique version names like firmware-v1.2.bin.
-
On the device side, you need logic to check the S3 bucket for new versions, download the binary, then install the update.
-
An alternative is to use AWS IoT which has specific OTA update features to push updates to devices. This may require more device-side integration.
To Summarize, add a firmware pipeline to your CDK stack, output binaries to S3, have devices check S3 and install updates. This lets you manage both web and firmware CI/CD together.
Relevant content
- asked 2 years ago
- Accepted Answerasked 9 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 10 months ago
Great! This was very helpful, thank you so much!