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

main
ts 16 lines 776 Bytes
Raw
1 import * as cloudformation from "@distilled.cloud/aws/cloudformation";
2 import * as Layer from "effect/Layer";
3 import { makeCloudFormationStackHttpBinding } from "./BindingHttp.ts";
4 import { DetectStackDrift } from "./DetectStackDrift.ts";
5
6 export const DetectStackDriftHttp = Layer.effect(
7 DetectStackDrift,
8 makeCloudFormationStackHttpBinding({
9 tag: "AWS.CloudFormation.DetectStackDrift",
10 operation: cloudformation.detectStackDrift,
11 // DetectStackDrift authorizes BOTH actions on the stack — the per-stack
12 // call fans out to per-resource drift checks and AWS rejects the call
13 // with AccessDenied on cloudformation:DetectStackResourceDrift alone.
14 actions: ["cloudformation:DetectStackDrift", "cloudformation:DetectStackResourceDrift"],
15 }),
16 );