Add AMI publish flake app
This commit is contained in:
@@ -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-...
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user