Add AMI publish flake app

This commit is contained in:
Timothy J. Aveni
2026-06-27 22:40:33 -07:00
parent 541a135e67
commit e66bc24def
2 changed files with 27 additions and 3 deletions
+2 -3
View File
@@ -21,8 +21,7 @@ The normal flow builds on a temporary EC2 instance, so your local machine does
not need to be the same architecture as the target AMI:
```bash
cd tofu/ami-builder
./publish-ami.sh --builder-instance-type t4g.large
nix run ./tofu/ami-builder#publish-ami -- --builder-instance-type t4g.large
```
`publish-ami.sh` applies this OpenTofu project to create a temporary builder
@@ -42,7 +41,7 @@ deregistering the AMI.
Pass extra OpenTofu variables after `--`:
```bash
./publish-ami.sh --builder-instance-type t4g.large -- \
nix run ./tofu/ami-builder#publish-ami -- --builder-instance-type t4g.large -- \
-var base_nixos_ami_id=ami-...
```