use userdata only to seed ami bootstrap env

This commit is contained in:
Abel Luck 2026-02-27 16:03:00 +01:00
parent 3be933f16b
commit a7aabdff51
3 changed files with 30 additions and 56 deletions

View file

@ -216,7 +216,7 @@ def _launch_slot(
) -> None:
"""Launch a single slot. Transition to LAUNCHING on success, ERROR on failure."""
slot_id = slot["slot_id"]
user_data = render_userdata(slot_id, config.aws.region)
user_data = render_userdata(slot_id)
try:
instance_id = runtime.launch_spot(slot_id, user_data)
metrics.counter("autoscaler_ec2_launch_total", {"result": "success"}, 1.0)