!atvIbxHoEqNcAIxYpN:nixos.org

NixOS AWS

64 Members
16 Servers

Load older messages


SenderMessageTime
6 Nov 2024
@arianvp:matrix.orgArianThis example is literally importing from local disk?13:31:35
@arianvp:matrix.orgArianJust like import image 13:31:38
@arianvp:matrix.orgArianSee line 413:32:07
@arianvp:matrix.orgArianThat's pointing to your local disk image you built13:32:28
@arianvp:matrix.orgArianYou upload the image to S3. Then import it as a snapshot. Then register the snapshot as an image13:32:45
@tuxiqae:matrix.orgtuxiqaeBut that'd mean that I'd have to provision a running image first, wouldn't it?14:00:26
@arianvp:matrix.orgArianYou just point that to your nix image build14:01:36
@arianvp:matrix.orgArianThis is just doing what upload-ami does but in terraform14:01:52
@arianvp:matrix.orgArianYou upload the image you built to s3. Import it to EBS. Then register the ebs snapshot as an image14:02:21
@arianvp:matrix.orgArianThere's no ec2 instances involved. 14:02:34
@arianvp:matrix.orgArianNot sure what you mean with "provision a running image'14:02:56
@tuxiqae:matrix.orgtuxiqaeAh, I see, I'll give it a look soon, thanks14:04:32
@arianvp:matrix.orgArianSo you'd point line 4 to the image that you built with disko14:05:52
@colemickens:matrix.orgcolemickens joined the room.17:19:49
@colemickens:matrix.orgcolemickens👋17:19:55
@arianvp:matrix.orgArianHello! Welcome17:56:15
@arianvp:matrix.orgArian @commiterate:matrix.org do you happen to know if its possible for us to register the nixos AMIs in the public ssm parameter store like Ubuntu does? 17:57:08
@arianvp:matrix.orgArianLike. It lives in the /Amazon namespace. Idk how they got access to that.17:57:22
@commiterate:matrix.orgcommiterate

I don't think creation of public SSM parameters is allowed. It's basically an AWS-internal thing.

SSM parameters can only be shared across accounts with AWS RAM. RAM only supports accounts, organizational units, or organizations (so no public option). They don't support resource-level IAM policies so we can't add one with a Principal: "*".

22:50:06
@commiterate:matrix.orgcommiterateWait nevermind, they do support resource-level policies. https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_PutResourcePolicy.html22:52:11
@arianvp:matrix.orgArianSo it's just for a set of blessed images?22:53:04
@commiterate:matrix.orgcommiterateAdvanced parameters (since standard ones don't support resource-level policies) has a cost though: https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-advanced-parameters.html22:53:11
@commiterate:matrix.orgcommiterateYeah it looks like they hardcode what parameters are public.22:53:25
@commiterate:matrix.orgcommiterateEven with the resource-level IAM policy, it seems people must refer to the parameter by its full ARN instead of just the name (if only the name is provided, it guesses the full ARN using the caller's account + region).23:03:22
@commiterate:matrix.orgcommiterateSo tl;dr we need to negotiate with AWS to get us on the hardcoded list.23:06:33
@commiterate:matrix.orgcommiterateI don't have any ins at SSM so I'd be asking a TAM just like you.23:08:58
@commiterate:matrix.orgcommiterate * I don't have any contacts at SSM so I'd be asking a TAM just like you. 23:09:23
@arianvp:matrix.orgArianYeh I'll bring it up. I'm just curious as it's a bit of a nicer experience then describe-image23:09:58
@arianvp:matrix.orgArian(in my opinion)23:10:07
@commiterate:matrix.orgcommiterateIt's definitely nicer because it removes account IDs from the equation and DescribeImage can be quite slow.23:10:30

Show newer messages


Back to Room ListRoom Version: 10