!atvIbxHoEqNcAIxYpN:nixos.org

NixOS AWS

65 Members
16 Servers

Load older messages


SenderMessageTime
27 Feb 2025
@drewhaven:matrix.orgdrewhavenProbably the main thing is that we already have the access controls set up.23:27:27
@drewhaven:matrix.orgdrewhavenA former SRE was going to use it for this, but never got around to it. Now I'm taking a crack at it.23:28:02
@drewhaven:matrix.orgdrewhavenI'm evaluating options atm.23:28:10
@drewhaven:matrix.orgdrewhaven set a profile picture.23:29:15
28 Feb 2025
@adam:robins.wtfadamcstephensssh is superior to ssm, except for the fact that ssm can use sso through aws.00:07:22
@adam:robins.wtfadamcstephensnot that you can't get sso with regular linux, but the setup ease of ssm is probably hard to beat.00:08:25
@adam:robins.wtfadamcstephensSSH/SSM/SSO, are there other such acronyms?00:09:07
@drewhaven:matrix.orgdrewhavenDon't forget SSL00:14:32
@commiterate:matrix.orgcommiterateSSM's main benefit is not needing to open up any security group or VPC rules to allow SSH ingress. I'd only use it for quick debugging though.00:29:32
@commiterate:matrix.orgcommiterateThe console terminal gets a bit annoying to use for anything more complicated.00:30:01
@commiterate:matrix.orgcommiterate* The browser WebSockets terminal gets a bit annoying to use for anything more complicated.00:30:14
@drewhaven:matrix.orgdrewhavenThat's the main use-case here, being able to run some commands on the deployed fleet and occasionally connect if something seems off. Our current system has an awkward setup where each box has it's own OpenVPN connection to a central EC2 instance.00:34:05
@drewhaven:matrix.orgdrewhavenThe local network is unmanaged and untrusted.00:34:26
@drewhaven:matrix.orgdrewhaven* The local network for the deployed boxes is unmanaged and untrusted.00:34:34
@commiterate:matrix.orgcommiterateyup SSM seems perfect then. It's significantly easier than trying to stand up your own bastion hosts00:44:05
@commiterate:matrix.orgcommiterate* yup SSM seems perfect then. It's significantly easier than trying to stand up your own bastion/ops hosts00:45:30
@commiterate:matrix.orgcommiterateyou don't have to use the system update features of SSM so it can work with immutable stuff00:48:58
@commiterate:matrix.orgcommiteratethat's basically how AWS use it themselves internally00:49:32
@commiterate:matrix.orgcommiteratebake an immutable Amazon Linux AMI with the SSM agent then only use it for the occasional deeper debug (assuming CW metrics + logs don't have enough info)00:50:07
@commiterate:matrix.orgcommiterate* bake an immutable Amazon Linux AMI with the SSM agent then only use it for the occasional deeper debug (when the CW metrics + logs don't have enough info)00:52:39
@drewhaven:matrix.orgdrewhavenExactly. The goal is to make the system so simple that the vast majority of issues can be fixed with a reboot or rollback.01:02:19
@drewhaven:matrix.orgdrewhavenNow to keep designing the rest of the system and make sure everyone's onboard with NixOS. Not everyone's as comfortable with Nix as I am, but it's a huge step up from the years-out-of-date Fedora they were using where every system could be a bit different.01:03:31
@commiterate:matrix.orgcommiterateIf you're using Cfn to manage your immutable infra setup, ASG instance refresh in Cfn stack updates is planned for this year and I'm chasing them to allow Cfn-managed S3 -> EBS snapshot imports. Latter is still waiting for a meeting with a PM though.01:05:43
@commiterate:matrix.orgcommiterateOnce both of those are in place, AWS CDK-based apps should be able to build a raw NixOS disk image wtih Nix, mark it as a CDK asset, and reference it in the AMI import resource.01:06:37
@commiterate:matrix.orgcommiterate *

If you're using Cfn to manage your immutable infra setup, ASG instance refresh in Cfn stack updates is planned for this year and I'm chasing them to allow Cfn-managed S3 -> EBS snapshot imports. Latter is still waiting for a meeting with a PM though.

  • https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/2119
  • https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/2175
01:07:42
@commiterate:matrix.orgcommiterate* Once both of those are in place, AWS CDK-based apps should be able to build a raw NixOS disk image with Nix, mark it as a CDK asset, and reference it in the AMI import resource.04:17:49
@arianvp:matrix.orgArianWild that they dont have instance refresh 07:28:33
@arianvp:matrix.orgArianIn all fairness. Terraform's implementation is bugged. So we trigger instance refresh with the CLI too07:28:52
@commiterate:matrix.orgcommiterateI'm surprised Cfn support wasn't a launch requirement since that's basically required for most AWS services.17:11:39
@commiterate:matrix.orgcommiterateThough instance refresh is a bit different since it's an action rather than a resource.17:12:01

Show newer messages


Back to Room ListRoom Version: 10