Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use newer AWS instances #2

Open
steve-chavez opened this issue Feb 23, 2024 · 6 comments
Open

Can't use newer AWS instances #2

steve-chavez opened this issue Feb 23, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@steve-chavez
Copy link
Member

steve-chavez commented Feb 23, 2024

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 NixOS/nixops#1574.

Proposal 2

Switch to terranix?

Proposal 3

Use plain terraform?

@steve-chavez steve-chavez added the bug Something isn't working label Feb 23, 2024
@roberth
Copy link

roberth commented Feb 28, 2024

Specifying AWS instances like the t4g series fail on NixOps.

This should work, as non-x86_64 instance support was added in NixOS/nixops-aws#159.
You could open an issue there.
What's the error?

@steve-chavez
Copy link
Member Author

@roberth Thanks for the feedback!

We're using an old nixpkgs here, I don't think we have that change

nixpkgs = builtins.fetchTarball {
name = "nixos-20.03";
url = "https://github.com/nixos/nixpkgs/archive/7bc3a08d3a4c700b53a3b27f5acd149f24b931ec.tar.gz";
sha256 = "1kiz37052zsgvw7a378zg08mpbi1wk8dkgm5j6dy0x4mxvcg8ws3";
};

I'll try and upgrade NixOps

@roberth
Copy link

roberth commented Feb 28, 2024

I see. Currently I'm fixing the build in Nixpkgs.
Nixpkgs 3f2deb9e98 is a somewhat recent one that does build.

@roberth
Copy link

roberth commented Feb 29, 2024

Please try with NixOS/nixpkgs#292099

The previous versions had a bug in AMI lookup.

@steve-chavez
Copy link
Member Author

@roberth Sorry for the late reply. Just got some time to try the migration.

I've upgraded to nixpkgs latest (#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. 🤔

@steve-chavez
Copy link
Member Author

Ah, nixops create does provide a hint:

ValueError: Neither flake.nix nor nixops.nix exists in /home/stevechavez/Projects/postgrest-benchmark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants