!atvIbxHoEqNcAIxYpN:nixos.org

NixOS AWS

64 Members
15 Servers

Load older messages


SenderMessageTime
27 Oct 2024
@commiterate:matrix.orgcommiterate

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-set-up.html

If you launched your instance using a later version of Amazon Linux, macOS Sonoma, macOS Ventura, macOS Monterey, or Ubuntu, it comes pre-installed with EC2 Instance Connect, and therefore you do not need to install it yourself.

17:41:15
@commiterate:matrix.orgcommiterate There should be nothing stopping them for Windows as well since OpenSSH supports Windows. My re-implementation should support it (can generate the AuthorizedKeysCommand exec as a .exe) 18:55:37
@commiterate:matrix.orgcommiterate * There should be nothing stopping them for Windows as well since OpenSSH supports Windows. My re-implementation should support it (can generate the AuthorizedKeysCommand exec as a .exe and I'm only using the Go crypto library) 18:55:47
@commiterate:matrix.orgcommiterate * There should be nothing stopping them for Windows as well since OpenSSH supports Windows. My re-implementation supports it (can generate the AuthorizedKeysCommand exec as a .exe and I'm only using the Go crypto library) 18:56:02
28 Oct 2024
@karstenpedersen:matrix.org@karstenpedersen:matrix.org joined the room.09:52:06
@arianvp:matrix.orgArianhttps://www.youtube.com/watch?v=0yb05mq9lLM is basically my whole talk in 2 minutes . 10:18:28
@arianvp:matrix.orgArian * https://www.youtube.com/watch?v=0yb05mq9lLM is basically my whole talk in 2 minutes . Very similar deploy process but using FH instead of S3 for caching10:18:42
29 Oct 2024
@shift:c-base.orgshift changed their profile picture.15:09:01
30 Oct 2024
@karstenpedersen:matrix.org@karstenpedersen:matrix.org set a profile picture.19:03:44
@karstenpedersen:matrix.org@karstenpedersen:matrix.org changed their profile picture.19:07:58
5 Nov 2024
@tuxiqae:matrix.orgtuxiqae joined the room.16:14:29
6 Nov 2024
@tuxiqae:matrix.orgtuxiqae

Heyo, I'm trying to create an AWS AMI using an image I've created using Disko
But now that I've uploaded the image onto S3 and tried importing it using aws ec2 import-image I get the following error (when describe-import-image-tasksing the task)

ClientError: Unable to find an etc directory with fstab.

Any idea what's the cause?

12:08:32
@tuxiqae:matrix.orgtuxiqae

My Disko config:

{
  disko.devices = {
    disk = {
      main = {
        device = "/dev/disk/by-id/some-disk-id";
        type = "disk";
        content = {
          type = "gpt";
          partitions = {
            ESP = {
              type = "EF00";
              size = "500M";
              content = {
                type = "filesystem";
                format = "vfat";
                mountpoint = "/boot";
                mountOptions = ["umask=0077"];
              };
            };
            root = {
              size = "100%";
              content = {
                type = "filesystem";
                format = "ext4";
                mountpoint = "/";
              };
            };
          };
        };
      };
    };
  };
}

I think it might be caused by the device but I'm not sure what to set it to

12:17:08
@tuxiqae:matrix.orgtuxiqae *

My Disko (default) config:

{
  disko.devices = {
    disk = {
      main = {
        device = "/dev/disk/by-id/some-disk-id";
        type = "disk";
        content = {
          type = "gpt";
          partitions = {
            ESP = {
              type = "EF00";
              size = "500M";
              content = {
                type = "filesystem";
                format = "vfat";
                mountpoint = "/boot";
                mountOptions = ["umask=0077"];
              };
            };
            root = {
              size = "100%";
              content = {
                type = "filesystem";
                format = "ext4";
                mountpoint = "/";
              };
            };
          };
        };
      };
    };
  };
}

I think it might be caused by the device but I'm not sure what to set it to

12:20:38
@arianvp:matrix.orgArianYou need to use import-snapshot13:05:13
@arianvp:matrix.orgArianAnd then register-image13:05:18
@arianvp:matrix.orgArianImport-image is b0rked. It only imports images that follow FHS13:05:33
@arianvp:matrix.orgArianDoesn't work with nixos13:05:36
@arianvp:matrix.orgArianYou can just use https://GitHub.com/nixos/amis upload_ami script13:05:55
@arianvp:matrix.orgArianIt does all of this13:05:58
@arianvp:matrix.orgArianOr use it as inspiration 13:06:05
@tuxiqae:matrix.orgtuxiqaeFML, wanted the ability to build a one-shot with Nix + Terranix that'll automatically provision the resources and start the instance13:11:41
@arianvp:matrix.orgArianYou can import snapshots with Terraform 13:15:56
@arianvp:matrix.orgArianAnd register the image too13:16:02
@arianvp:matrix.orgArianaws_ebs_snapshot_import resource13:16:35
@arianvp:matrix.orgArianCombine with aws_s3_bucket_item resource and aws_ami resource and you're done13:17:00
@arianvp:matrix.orgArianSomething like https://gist.github.com/arianvp/14dd40742c24894bb312ac3f5b90b43313:21:29
@tuxiqae:matrix.orgtuxiqaeYeah, but in order to import a snapshot I'd have to first provision a VM and then export that I wanted to just automatically create an image and upload that :(13:30:30
@arianvp:matrix.orgArianNo ?13:31:05
@tuxiqae:matrix.orgtuxiqae:O13:31:17

Show newer messages


Back to Room ListRoom Version: 10