File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ # Documentation
2+
3+ ## Prerequisites
4+
5+ ### AMI Import
6+
7+ 1 . Build AMI
8+
9+ ``` sh
10+ nix build .# ami
11+ ```
12+
13+ 2 . Create Service Role
14+
15+ Required permissions for AMI import. [ docs] ( https://docs.aws.amazon.com/vm-import/latest/userguide/required-permissions.html#vmimport-role )
16+
17+ ``` sh
18+ aws --profile strykeforce iam create-role --role-name vmimport --assume-role-policy-document " file://$HOME /Code/strykeforce/strykeforce.org/docs/ami/trust-policy.json"
19+
20+ aws --profile strykeforce iam put-role-policy --role-name vmimport --policy-name vmimport --policy-document " file://$HOME /Code/strykeforce/strykeforce.org/docs/ami/role-policy.json"
21+ ```
22+
23+ 3 . Upload VHD Snapshot
24+
25+ 4 . Import Snapshot
26+
27+ ``` sh
28+ aws --profile strykeforce ec2 import-snapshot --description " NixOS 24.11 (x86_64)" --disk-container " file://$HOME /Code/strykeforce/strykeforce.org/docs/ami/container.json"
29+
30+ aws --profile strykeforce ec2 describe-import-snapshot-tasks --import-task-ids < import-task-id>
31+ ```
32+
33+ 5 . Create AMI from Snapshot
34+
35+ [ docs] ( https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html#creating-launching-ami-from-snapshot )
36+
37+
38+ ## Development
39+
40+ ## Deployment
You can’t perform that action at this time.
0 commit comments