use userdata only to seed ami bootstrap env
This commit is contained in:
parent
3be933f16b
commit
a7aabdff51
3 changed files with 30 additions and 56 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue