NixOS AWS | 64 Members | |
| 16 Servers |
| Sender | Message | Time |
|---|---|---|
| 20 Sep 2024 | ||
| And NixOS obviously doesn't adhere to it.. | 08:39:28 | |
| Like they just need to make a very small change to the API. No need for cloudformation. Why are they making things so complicated | 08:40:25 | |
| They either need to have ImportImage not bail out on NixOS images. Or support ImportSnapshot | 08:40:46 | |
| Oh I have another hack: Pass an AMI to update-image-recipe (and change the version) then throw away the original AMi | 08:51:26 | |
| Then the image builder pipeline can do all the Lifecycle stuff | 08:51:36 | |
| Hmm | 08:51:51 | |
| Nah still kind of hacky | 08:52:22 | |
| If ImportImage would work then we'd only need to import images and set up a Lifecycle policy and nothing else | 08:54:20 | |
| It'd be ideal | 08:54:23 | |
| Redacted or Malformed Event | 09:44:03 | |
| So maybe this is something we can ask? "Hey why is ImportImage failing on NixOS images and can you fix it?". Then I think everything slots nicely into AWS Image Builder | 09:45:04 | |
| The error in question by the way: https://discourse.nixos.org/t/fstab-error-while-creating-a-custom-amazon-ec2-ami/6697 | 09:47:23 | |
| And Nixos isn't the only image without /etc/fstab. Any OS following https://uapi-group.org/ doesn't have one needed for boot anymore. | 09:51:53 | |
| The other problem is that ImportImage is sloooooow. Like it takes half an hour to import an image | 16:08:35 | |
| As opposed to 2 minutes with ImportSnapshot | 16:08:50 | |
| Do we need a base image for a workflow? I thought only recipes needed it and that parent image can be an AMI ID (i.e. not tracked by Image Builder) or an Image ARN (tracked by Image Builder). | 18:07:47 | |
Hmm I guess that raises another question of how the workflow's CreateImage step plays with the AWS::ImageBuilder::Image resource. | 18:09:21 | |
| And I think the lifecycle policy has to be on tags instead of the recipe ARN since we aren't using a recipe. | 18:09:45 | |
| From what I understand from talking to the PM, Image Builder has 2 ways of building images: a recipe (original) or a workflow (new, launched in December 2023). Workflows are significantly more flexible and seem to only require the SSM Agent (for SSM Run Command) instead of both SSM Agent and AWSTOE. | 18:12:16 | |
| As for the workflow, it would be a single no-op workflow (e.g. We'd probably make the AMI outside of Cfn and then pass its ID in as a Cfn stack parameter to reference in the workflow for the | 18:25:05 | |
But yeah would be really nice if they just make ImportVmImage super general and bring ImportImage up to parity with ImportSnapshot. | 18:25:53 | |
* But yeah would be really nice if they just make ImportVmImage super general and bring ImportImage up to parity with ImportSnapshot. With Cfn integration, we can do everything in a single Cfn stack update without any out-of-band nonsense. | 18:26:19 | |
| I know internally Amazon has need for this as well so I'm trying to expand who they consider potential stakeholders to raise the priority. | 18:27:08 | |
| On a separate note, Cfn integration for Instance Refresh is already planned for next year though they don't know which quarter they're targeting release yet. | 18:32:40 | |
| My guess is that it's a single quarter project. | 18:33:16 | |
| * My guess is that it's a single quarter project having done Cfn integration work before. | 18:33:41 | |
| 21 Sep 2024 | ||
* But yeah would be really nice if they just make ImportVmImage super general (support both ImportImage and ImportSnapshot) and bring ImportImage up to parity with ImportSnapshot. With Cfn integration, we can do everything in a single Cfn stack update without any out-of-band nonsense. | 01:40:50 | |
| 05:44:23 | ||
| * As for the workflow, it would be a single no-op workflow (e.g. We'd probably make the AMI outside of Cfn and then pass its ID in as a Cfn stack parameter to reference in the workflow for the | 06:03:25 | |
| * As for the workflow, it would be a single no-op workflow (e.g. We'd probably make the AMI outside of Cfn and then pass its ID in as a Cfn stack parameter to reference in the workflow for the | 06:03:31 | |