amazon-ec2-image-builder-samples
amazon-ec2-image-builder-samples copied to clipboard
Documentation on when to use ImageBuilder Pipelines
There is no recommendations on when or when not to use Pipelines.
EG the Cfn example doesn't have a pipeline while the CDK does.
Why? And when should we chose either of these two options?
Image Builder Pipelines are designed so you can create a schedule for when you'd like your image to be built. For more information you can find the documentation here.
If you want an image created once, and only once, then there likely isn't a need for a pipeline (although they can be created with no schedule). However, if you want an image to be created more than once, perhaps to align with package security updates, then a using a pipeline would be the recommended approach.
In regards to this repository, there is no specific reason why some samples include a pipeline and some do not.
Does that help?
Not really. I mean, it just sounds random rather than reasoned, like "we are showing you how to do a 1 off ami with this Cfn. You would typically only do this for testing" etc etc
This repository's purpose is provide samples that customers can use to learn more about ways to interact with, or create Image Builder resources. It is not intended to be a source of truth for the best practices on how each individual or business should model their golden image workflows.
Given that, the note that "this repository is aimed at testing purposes" is the accurate take.
For more focused best practice guidance I would look towards AWS blog posts such as Automate OS Image Build Pipelines with EC2 Image Builder or Create immutable servers using EC2 Image Builder and AWS CodePipeline (I'm sure there are others, they were the first two I found).