Commit graph

4 commits

Author SHA1 Message Date
Garrison Davis
e426ec414a Add back ability to make on-demand instances
Also addressed the couple TODOs I left behind in the terraform.

(cherry picked from commit 4d75eda557)
2022-12-12 09:01:20 -08:00
Garrison Davis
f7a7a8a0c0 Make tflint and terraform fmt changes
(cherry picked from commit d028b6bc4b)
2022-12-12 09:01:20 -08:00
Garrison Davis
bc01e4c55c Make spot instance selection dynamic
The idea behind this is to give AWS more information about what
instances we can let it actually instantitate, rather than have it be
one fixed instance type.

e.g., in this case, we are okay with any Graviton instance with at least
2 vCPU and 8 GiB memory.

The easist way to do that is to instead use a launch template, with
ec2_fleets or spot fleets.

I took out the part where we even support on-demand instances. This can
be readded later if it is necessary.

(cherry picked from commit 3bfb65eb58)
2022-12-12 09:01:20 -08:00
Fletcher Haynes
eb06bb50ae Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00