Rutagon runs a shared pipeline that publishes a golden AMI into the accounts you name and deprecates the previous image, for a team whose launch templates still point at an AMI somebody built by hand. The deliverable is one EC2 Image Builder pipeline, a distribution to those accounts, and a deprecation of the prior image so new launches stop selecting it. We do not terminate instances that are already running.
EC2 Image Builder multi-account
The failure this removes is a new instance launching from an image that no longer matches the packages you meant to standardize. EC2 Image Builder multi-account is a pipeline in the account you choose, with a recipe and a distribution configuration. AWS describes the service in the Image Builder documentation. Distribution copies the AMI to the accounts and regions on the list. A recipe that only builds in one account and is then copied by a script with a personal key is the pattern we replace.
We do not put every hardening wish into the first recipe. The recipe is the packages and the settings you can name and test. A setting nobody can explain is not added because a benchmark mentioned it. Unused AMI and snapshot cost is the neighboring meter when old images are the bill. This engagement publishes the new image and deprecates the previous one. Deregistering an AMI that running instances still reference is not the first action. Deprecation stops new launches from treating it as the golden image. Deregister waits until you confirm nothing new can select it and you accept the snapshot plan. Multi-account organization setup is the baseline when the accounts are not together yet. AWS cloud infrastructure is the lane.
The launch template is part of the delivery. Publishing an AMI nobody's template references does not change what boots. We add a template version that points at the new AMI and set that version as the default for the templates you list. Auto Scaling groups and other launch paths you name get the same pointer. A template you marked out keeps its old AMI. We do not hunt every template in the organization on the first week.
pipeline, ami_id, account, previous_ami, deprecated, template_version
Deprecated is true only when the previous image's deprecation is set and a describe shows it. The new AMI id is on the row. A build that fails stays in the exception file with the Image Builder reason. We do not mark the golden image published because the pipeline started. A person releases a failed build by fixing the recipe or by stopping that component. We do not skip a failed test component to get an id.
The node or the instance role that builds does not use a long-lived key. The pipeline's role is the role. Images that replicate so pulls need no keys is the container path. An AMI is not a container repository. If the golden image still contains a registry password or an access key in cloud-init, that is a defect in the recipe and we remove it before distribution. We do not distribute an image we know has a static key and file a follow-up.
The test is a launch in a non-production account from the new template version, and a check that the previous AMI is deprecated so a console user is warned off it. We also read one production template you said must move, in a window you pick, and we do not replace it in the same hour as the first test launch. Running instances keep the image they already booted until you replace them. Replacement is a later change with its own window. This engagement's boundary is the image new launches get.
What you re-run is the pipeline. The note names the pipeline, the distribution accounts, and the template ids. A new person should be able to start a build and see which AMI id came out. We do not keep a private copy of the image. It lives in the accounts on the distribution list. The role we use is one you can revoke.
A second cycle that shows launches still using the deprecated AMI means a template or a runbook we did not have on the list. We add it or we name it. We do not undepricate the old image to make those launches look supported. The report is the AMI id, the accounts, and the templates. A wiki page that disagrees with the template version is the page we correct.
Deprecation is a flag on the previous AMI, not a delete. New launches that still name that AMI by id will boot it until the template moves. That is why the template version is part of the same delivery. An account on the distribution list that cannot accept the share stays an exception with the error, and we do not copy the AMI in with a personal key to finish the list. The pipeline's next build produces a new id. The previous id, the one we just published, is what gets deprecated when that next build is accepted. We do not deprecate an image that is still the default on a template you asked us to move.
Book a technical call. 907-841-8407. contact@rutagon.com.
Frequently Asked Questions
Do you terminate instances on the old AMI?
No. Deprecation stops the previous image from being the one new launches should select, and instances already running keep it until you schedule a replacement. We do not deregister an AMI that running instances still use as the first step. Deregister is a later decision after you accept the snapshot plan.
What makes the new image the one that boots?
A launch template version that references the new AMI, set as the default on the templates you listed. Publishing the AMI without that pointer does not change launches. Templates you marked out are left on the old id. We do not scan every template in the organization in the first week.
Where does the pipeline run?
In the account you name, with a role, not a long-lived key. Distribution copies the AMI to the accounts and regions on the list. A script that copies images with a personal key is the pattern this replaces. The role is one you can revoke when we are done.
What if the image build fails a test?
The row stays open with the Image Builder reason. We do not publish a partial image by skipping the failed component. A person decides whether the recipe changes or that component is removed from the recipe in writing. A started pipeline is not a published AMI.