Open steve-chavez opened 7 months ago
Specifying AWS instances like the
t4g
series fail on NixOps.
This should work, as non-x86_64 instance support was added in https://github.com/NixOS/nixops-aws/pull/159. You could open an issue there. What's the error?
@roberth Thanks for the feedback!
We're using an old nixpkgs here, I don't think we have that change https://github.com/PostgREST/postgrest-benchmark/blob/262be48d5f070b147d4ff65b3da8e9bacdf194e1/shell.nix#L2-L6
I'll try and upgrade NixOps
I see. Currently I'm fixing the build in Nixpkgs. Nixpkgs 3f2deb9e98 is a somewhat recent one that does build.
Please try with https://github.com/NixOS/nixpkgs/pull/292099
The previous versions had a bug in AMI lookup.
@roberth Sorry for the late reply. Just got some time to try the migration.
I've upgraded to nixpkgs latest (https://github.com/PostgREST/postgrest-benchmark/pull/3), but I'm getting an error:
$ nixops create deploy.nix -d postgrest-bench
usage: nixops [-h] [--version] [--pdb] operation ...
nixops: error: unrecognized arguments: deploy.nix
Checking man nixops
and the 2.0 release notes I don't see how to use the create
command now. :thinking:
Ah, nixops create
does provide a hint:
ValueError: Neither flake.nix nor nixops.nix exists in /home/stevechavez/Projects/postgrest-benchmark
Problem
Specifying AWS instances like the
t4g
series fail on NixOps.Proposal 1
Update NixOps. Not sure if this will solve it as NixOps status is unclear https://github.com/NixOS/nixops/issues/1574.
Proposal 2
Switch to terranix?
Proposal 3
Use plain terraform?