!atvIbxHoEqNcAIxYpN:nixos.org

NixOS AWS

64 Members
16 Servers

Load older messages


SenderMessageTime
20 Sep 2024
@arianvp:matrix.orgArianAnd NixOS obviously doesn't adhere to it..08:39:28
@arianvp:matrix.orgArianLike 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
@arianvp:matrix.orgArianThey either need to have ImportImage not bail out on NixOS images. Or support ImportSnapshot 08:40:46
@arianvp:matrix.orgArian

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
@arianvp:matrix.orgArianThen the image builder pipeline can do all the Lifecycle stuff08:51:36
@arianvp:matrix.orgArianHmm08:51:51
@arianvp:matrix.orgArianNah still kind of hacky08:52:22
@arianvp:matrix.orgArianIf ImportImage would work then we'd only need to import images and set up a Lifecycle policy and nothing else 08:54:20
@arianvp:matrix.orgArianIt'd be ideal08:54:23
@arianvp:matrix.orgArianRedacted or Malformed Event09:44:03
@arianvp:matrix.orgArianSo 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
@arianvp:matrix.orgArianThe error in question by the way: https://discourse.nixos.org/t/fstab-error-while-creating-a-custom-amazon-ec2-ami/669709:47:23
@arianvp:matrix.orgArianAnd 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
@arianvp:matrix.orgArianThe other problem is that ImportImage is sloooooow. Like it takes half an hour to import an image16:08:35
@arianvp:matrix.orgArianAs opposed to 2 minutes with ImportSnapshot 16:08:50
@commiterate:matrix.orgcommiterateDo 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
@commiterate:matrix.orgcommiterate Hmm I guess that raises another question of how the workflow's CreateImage step plays with the AWS::ImageBuilder::Image resource. 18:09:21
@commiterate:matrix.orgcommiterateAnd 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
@commiterate:matrix.orgcommiterateFrom 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
@commiterate:matrix.orgcommiterate

As for the workflow, it would be a single no-op workflow (e.g. AWS::ImageBuilder::Workflow in Cfn) we just reference in a single pipeline.

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 LaunchInstance step to then create an image with CreateImage. The instance launch will at least show the AMI is bootable, so it's not completely useless.

18:25:05
@commiterate:matrix.orgcommiterate But yeah would be really nice if they just make ImportVmImage super general and bring ImportImage up to parity with ImportSnapshot. 18:25:53
@commiterate:matrix.orgcommiterate * 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
@commiterate:matrix.orgcommiterateI 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
@commiterate:matrix.orgcommiterateOn 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
@commiterate:matrix.orgcommiterateMy guess is that it's a single quarter project.18:33:16
@commiterate:matrix.orgcommiterate * My guess is that it's a single quarter project having done Cfn integration work before.18:33:41
21 Sep 2024
@commiterate:matrix.orgcommiterate * 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
@luna-null:matrix.org@luna-null:matrix.org joined the room.05:44:23
@commiterate:matrix.orgcommiterate *

As for the workflow, it would be a single no-op workflow (e.g. AWS::ImageBuilder::Workflow in Cfn) we just reference in a multiple pipelines.

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 LaunchInstance step to then create an image with CreateImage. The instance launch will at least show the AMI is bootable, so it's not completely useless.

06:03:25
@commiterate:matrix.orgcommiterate *

As for the workflow, it would be a single no-op workflow (e.g. AWS::ImageBuilder::Workflow in Cfn) we just reference in multiple pipelines.

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 LaunchInstance step to then create an image with CreateImage. The instance launch will at least show the AMI is bootable, so it's not completely useless.

06:03:31

Show newer messages


Back to Room ListRoom Version: 10