Publish AMI artifact IDs to SSM
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user