parlel/cloudtrail

A zero-dependency, in-process fake of AWS CloudTrail. Speaks AWS JSON 1.1 (X-Amz-Target: com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.<Op>).

PropertyValue
Service namecloudtrail
Port4734
ProtocolAWS JSON 1.1 (POST /)
Targetcom.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.<Operation>
HealthcheckGET /_parlel/health
Account ID000000000000

Default connection

AWS_ENDPOINT_URL=http://127.0.0.1:4734
AWS_REGION=us-east-1
AWS_ACCESS_KEY_ID=parlel
AWS_SECRET_ACCESS_KEY=parlel

Supported operations

OperationNotes
CreateTrailRequires Name and S3BucketName.
DescribeTrailsOptional trailNameList filter.
ListTrailsReturns trail ARNs/names.
GetTrailStatusReturns IsLogging and timestamps.
StartLoggingMarks the trail as logging.
StopLoggingMarks the trail as stopped.
DeleteTrailRemoves the trail.
UpdateTrailMutates trail settings.
LookupEventsReturns seeded audit events; supports LookupAttributes.
PutEventSelectorsStores event selectors.
GetEventSelectorsReturns event selectors.

LookupEvents returns three seeded events (ConsoleLogin, RunInstances, CreateBucket), each with a full CloudTrailEvent JSON payload.

SDK example

import {
  CloudTrailClient,
  CreateTrailCommand,
  StartLoggingCommand,
  LookupEventsCommand,
} from "@aws-sdk/client-cloudtrail";

const ct = new CloudTrailClient({
  region: "us-east-1",
  endpoint: "http://127.0.0.1:4734",
  credentials: { accessKeyId: "parlel", secretAccessKey: "parlel" },
});

await ct.send(new CreateTrailCommand({ Name: "audit", S3BucketName: "logs" }));
await ct.send(new StartLoggingCommand({ Name: "audit" }));
const { Events } = await ct.send(new LookupEventsCommand({}));
console.log(Events[0].EventName);

Access via MCP / preview URL

When run inside parlel, CloudTrail is reachable through the pool's MCP bridge and any assigned preview URL. Point AWS_ENDPOINT_URL at the preview URL.

Surface coverage

This emulator faithfully replicates the API surface most application code and agents exercise. Anything below the supported lines is either an intentional design choice for a fast, zero-cost local emulator (✓ By design) or a candidate for a future release (⟳ Roadmap) — never a silent inaccuracy.

Legend: ✅ fully supported · ◐ accepted (stored, not strictly enforced) · ✓ by design · ⟳ on the roadmap.

AreaLimitation
EventsLookupEvents returns fixed seeded events, not live logs.
Log deliveryNo real S3 objects are written.
InsightsCloudTrail Insights and Lake are not implemented.
StateIn memory, cleared on reset (events re-seeded).
<!-- parlel:testenv:start -->

Configuration — test.env

Copy these into your test.env (used by the bridge sidecar flow). Tokens are Parlel's seeded test credentials — any non-empty value is accepted by the emulator, so you rarely need to change them. Swap in real credentials only when pointing at the live service in prod.env.

AWS_ACCESS_KEY_ID=parlel
AWS_SECRET_ACCESS_KEY=parlel
AWS_REGION=us-east-1
AWS_ENDPOINT_URL=http://parlel-bridge:4734
<!-- parlel:testenv:end -->