{"id":21595259,"url":"https://github.com/euank/nixos-ami-upload","last_synced_at":"2026-05-14T21:32:13.174Z","repository":{"id":66058249,"uuid":"391045304","full_name":"euank/nixos-ami-upload","owner":"euank","description":"Tool to upload NixOS Amazon Machine images","archived":false,"fork":false,"pushed_at":"2023-04-07T09:26:16.000Z","size":30,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-24T17:19:55.582Z","etag":null,"topics":["aws-ec2-ami","nixos"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/euank.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-30T11:48:02.000Z","updated_at":"2024-10-25T13:44:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"5e302747-1cc6-41b2-a684-ad76aa6c2b02","html_url":"https://github.com/euank/nixos-ami-upload","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/euank%2Fnixos-ami-upload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/euank%2Fnixos-ami-upload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/euank%2Fnixos-ami-upload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/euank%2Fnixos-ami-upload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/euank","download_url":"https://codeload.github.com/euank/nixos-ami-upload/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244207736,"owners_count":20416107,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-ec2-ami","nixos"],"created_at":"2024-11-24T17:35:23.049Z","updated_at":"2025-10-15T08:20:37.690Z","avatar_url":"https://github.com/euank.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## nixos-ami-upload\n\nIn essence, this is [this bash script](https://github.com/NixOS/nixpkgs/blob/bed52081e58807a23fcb2df38a3f865a2f37834e/nixos/maintainers/scripts/ec2/create-amis.sh), but in rust.\n\nIt also makes the choice of uploading snapshots directly rather than using the\n\"vmimport\" service, which makes it simpler to operate (no need for an IAM role + s3 bucket to be setup), and in some cases is also faster.\n\nThe actual snapshot uploading is done using [coldsnap](https://github.com/awslabs/coldsnap/).\n\n### Usage\n\n1. Create a nixos AMI, as seen [here](https://github.com/euank/nixek-overlay/blob/87cb836fcfc0c7242a9128790737cb0faeeb72c6/amis/jenkins-worker/default.nix#L1-L42).\n    Note, the format _must_ be `raw`.\n2. Build the nix derivation in 1, such as with `nix-build -o ami my-custom-ami.nix` The output will have a `nix-support/image-info.json` file present if done correctly.\n3. Use this tool to upload that ami with `nixos-ami-upload /path/to/nix-build/result --regions us-west-2,us-west-1`.\n\n### Status\n\nAt the time of writing, this is neither heavily tested, nor all that clean\ncode. Caveat emptor.\n\n## License\n\nApache 2.0, since it borrows code from coldsnap which is similarly licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feuank%2Fnixos-ami-upload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feuank%2Fnixos-ami-upload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feuank%2Fnixos-ami-upload/lists"}