Skip to content

euank/nixos-ami-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nixos-ami-upload

In essence, this is this bash script, but in rust.

It also makes the choice of uploading snapshots directly rather than using the "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.

The actual snapshot uploading is done using coldsnap.

Usage

  1. Create a nixos AMI, as seen here. Note, the format must be raw.
  2. 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.
  3. Use this tool to upload that ami with nixos-ami-upload /path/to/nix-build/result --regions us-west-2,us-west-1.

Status

At the time of writing, this is neither heavily tested, nor all that clean code. Caveat emptor.

License

Apache 2.0, since it borrows code from coldsnap which is similarly licensed.

About

Tool to upload NixOS Amazon Machine images

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages