Closed tadejsv closed 2 years ago
You can use e.g. cml runner ... --cloud-region=eu-central-1a
to select manually a different availability zone
If request is done using spot fleet
It's not 😅
You can use e.g.
cml runner ... --cloud-region=eu-central-1a
to select manually a different availability zone
The problem with this is:
Plus, then every time before I run CI I would need to check AZs, and change the parameter in ci.yaml
or wherever - not a very pleasant workflow I think
Currently it's not documented [...]
It's not 🙈
[...] and would it work? There is a difference between region and availability zone.
Yes, it does: implemented with https://github.com/iterative/terraform-provider-iterative/pull/323, closed https://github.com/iterative/cml/issues/459.
This requires me to do manually what can be done automatically (check which AZs have my instance), possibly through trial and error (bc nobody goes first to check available instances) and waste precious development time [...] Plus, then every time before I run CI I would need to check AZs, and change the parameter in
ci.yaml
or wherever - not a very pleasant workflow I think
That's a good point, indeed. If you have to switch availability zones often, it would make sense to automate the process. E.g. the iterative_task
resource does, but it's a different beast based on Auto Scaling groups.
@tadejsv, happy with #670? 😄
@0x2b3bfa0 Wow, that was fast! Looks awesome!
Thanks for addressing this issue so fast @0x2b3bfa0 !
I have one question here: When can I expect this change to make it to CML :) ? I am using it through iterative/setup-cml@v1
on GitHub
@tadejsv as soon as the terraform registry has the latest tpi published you should be able to run the same work workflow with the new logic.
cml does not pin the tpi version for runner; currently, if you wanted to do this (pin cml to a specific tpi version) you need to use a hidden flag --tpi-version='=0.11.3'
(I wouldn't recommend doing this, as we rarely* make any backward incompatible changes )
I was trying to create a CML runner, but it failed because
Would be great if TPI could:
If request is done using spot fleet, you can probably just create launch templates for all AZs in the region.