This repository contains derivations for various OS images, e.g. AWS AMIs with custom kernel and Enarx pre-installed and pre-configured.
Nix is the only dependency of this project.
Use nix develop (from a local checkout) or nix develop github:profianinc/images (directly from GitHub) to start a development shell with all commands and possible dependencies in scope.
This is a one-time procedure, commands assume empty AWS account.
See https://docs.aws.amazon.com/vm-import/latest/userguide/vmie_prereqs.html#vmimport-role for more details.
$ aws-create-vmimport-role
$ aws-put-vmimport-role-policy$ nix run '.#aws-create-vmimport-role'
$ nix run '.#aws-put-vmimport-role-policy'$ nix run 'github:profianinc/images#aws-create-vmimport-role'
$ nix run 'github:profianinc/images#aws-put-vmimport-role-policy'$ nix build '.#enarx-sev-amazon'
$ nix run '.#aws-create-ami' ./result$ nix build '.#enarx-sev-amazon'
$ aws-create-ami ./result$ nix build 'github:profianinc/images#enarx-sev-amazon'
$ nix run 'github:profianinc/images#aws-create-ami' ./result