Publish AMI artifact IDs to SSM

This commit is contained in:
Timothy J. Aveni
2026-06-28 17:41:21 -07:00
parent 70797543e4
commit 30d6ba2332
3 changed files with 109 additions and 6 deletions
+15
View File
@@ -58,6 +58,14 @@ The final AMI is tagged with:
- `NixSnapshotId`
- `NixosSystemClosure`
The publisher also writes SSM parameters that point to the AMI ID:
- `/quixos/amis/<name>/<architecture>/recommended`
- `/quixos/amis/<name>/<architecture>/by-builder-rev/<rev>`
- `/quixos/amis/<name>/<architecture>/by-input-hash/<hash>`
Central services read the `recommended` parameter by default.
Do not deregister the AMI or delete either snapshot while runtime deployments
use it.
@@ -69,6 +77,13 @@ List published AMIs and cross-reference qx-deploy runtime registry records:
nix run ./tofu/ami-builder#ami-artifacts -- list
```
Publish SSM parameters for an existing AMI, useful for AMIs created before SSM
publication was added:
```bash
nix run ./tofu/ami-builder#ami-artifacts -- publish-ssm --ami-id ami-...
```
Delete an unused AMI and its root and `/nix` snapshots:
```bash