Skip to content

Commit 9a9b293

Browse files
committed
fix(oabctl): always enable execute command on ECS services
oabctl apply was creating/updating services without enableExecuteCommand, requiring a manual aws ecs update-service call before `oabctl exec` or `ecsh` would work. Now both create_service and update_service always set enable_execute_command(true) — all OAB services need it for debugging and there's no reason to ever leave it off.
1 parent 4f28c2d commit 9a9b293

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

operator/src/apply.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ async fn apply_ecs(
468468
.cluster("oab")
469469
.service(&service_name)
470470
.task_definition(&task_def_arn)
471+
.enable_execute_command(true)
471472
.network_configuration(network_config);
472473

473474
if let Some(cm) = &cloud_map {
@@ -522,6 +523,7 @@ async fn apply_ecs(
522523
.service_name(&service_name)
523524
.task_definition(&task_def_arn)
524525
.desired_count(1)
526+
.enable_execute_command(true)
525527
.capacity_provider_strategy(cap_strategy)
526528
.network_configuration(network_config);
527529

0 commit comments

Comments
 (0)