What is the process for publishing the official NixOS AMIs?

As the title says, what is the process for publishing the new AMIs?

There is this file: https://github.com/NixOS/nixpkgs-channels/blob/91d5b3f07d27622ff620ff31fa5edce15a5822fa/nixos/modules/virtualisation/ec2-amis.nix, generated using this script https://github.com/NixOS/nixpkgs/blob/14f812aeef754760e7b1f87f7b7c9a887cbf7765/nixos/maintainers/scripts/ec2/create-amis.sh.

However, I’m not clear who and when runs it?

Would it be possible to update 19.03 images, for example, to have a more up-to-date version of AMI?

The NixOS Foundation’s infrastructure team generates and uploads AMIs usually once per stable release.

For 19.09’s release, this ticket was created: https://github.com/NixOS/nixos-org-configurations/issues/90 and Amine sent this PR: ec2-amis.nix: add 19.09 amis by AmineChikhaoui · Pull Request #72186 · NixOS/nixpkgs · GitHub

We should update the release process documenattion (cc @disassembler) to include an issue to the nixos-org-configurations repo, for generating new AMIs.

Graham

2 Likes

Thanks for the response @grahamc!

Would it be possible to upload AMIs periodically with up-to-date version of nixpkgs? That way we reduce the amount of copying with nix-copy-closure and keep the running systems robust, as newly started instances will already contain all important patches.

(And in case volunteers are needed for this, I’ll be more than happy to help)

Nikola

I have some experience modifying the create-amis.sh for custom purposes. @knl, let me know if I can help.

It would be nice to run this as part of script which updates the channel ($title).

Also, and this is only my opinion, that we should not include this infomation in nixpkgs, but rather have it as a release artifact for each channel update (example of artifacts for a successful evaluation → Channels for NixOS project(s)).

If this gets done please ping me to change the source of this information on the website.

/me adds yet another thing to the todo list and hopes somebody beats me to it :slight_smile:

1 Like