The best way to control Claude Code, Codex and more from any computer or phone

main
ts 15 lines 531 Bytes
Raw
1 import * as ECS from "@distilled.cloud/aws/ecs";
2 import * as Layer from "effect/Layer";
3 import { makeEcsClusterHttpBinding } from "./BindingHttp.ts";
4 import { ExecuteCommand } from "./ExecuteCommand.ts";
5
6 export const ExecuteCommandHttp = Layer.effect(
7 ExecuteCommand,
8 makeEcsClusterHttpBinding({
9 tag: "AWS.ECS.ExecuteCommand",
10 operation: ECS.executeCommand,
11 actions: ["ecs:ExecuteCommand"],
12 // `ecs:ExecuteCommand` authorizes against both the cluster and the task.
13 resources: ["cluster", "task"],
14 }),
15 );