Files
floci/docs/services/cloudtrail.md
T
Hector Ventura 717769857b docs: correct service count to 58 and add EMR, WAF v2, CloudTrail pages (#1398)
Reconcile inconsistent service counts (55/54/41) to 58 distinct services across the README, docs index, services overview, and the LocalStack migration guide. Add the missing per-service pages and Service Matrix rows for EMR, WAF v2, and CloudTrail, and wire them into the mkdocs nav and README service tables.
2026-06-16 18:57:37 -05:00

1.3 KiB

CloudTrail

Protocol: JSON 1.1 Endpoint: http://localhost:4566/ Target prefix: X-Amz-Target: com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.*

Floci emulates the AWS CloudTrail management API. Trails, their event selectors, and logging status are persisted in Floci's storage backend so you can create and manage trails and validate IaC locally. Floci does not record live API activity into trails.

Supported Actions

Action Description
CreateTrail Creates a trail and returns its ARN
UpdateTrail Updates the settings of an existing trail
DeleteTrail Deletes a trail
DescribeTrails Returns the settings for one or more trails
GetTrailStatus Returns the logging status of a trail
StartLogging Starts logging for a trail
StopLogging Stops logging for a trail
PutEventSelectors Configures the event selectors for a trail

Example

export AWS_ENDPOINT_URL=http://localhost:4566

# A trail needs a destination S3 bucket
aws s3 mb s3://my-trail-bucket

aws cloudtrail create-trail \
  --name demo-trail \
  --s3-bucket-name my-trail-bucket

aws cloudtrail start-logging --name demo-trail
aws cloudtrail get-trail-status --name demo-trail
aws cloudtrail describe-trails