Atlantiraptor Docs

aws_cloudtrail

Type: Plugin

Read AWS CloudTrail management events of one region (LookupEvents, the last 90 days). One row per event, with the identity, request and response flattened.

Argument Type Description
secret string Name of an “AWS Creds” secret.
access_key_id string Access key ID when no secret is used.
secret_access_key string Secret access key when no secret is used.
session_token string Session token for temporary keys.
role_arn string Role to assume in the customer account.
external_id string External ID that the trust policy of the role requires.
region string (required) AWS region to read, e.g. us-east-1 (global services such as IAM and console sign-in log there).
event_name string Only events with this name.
event_source string Only events from this service, e.g. iam.amazonaws.com.
username string Only events by this user name (root for the root user).
access_key string Only events made with this access key ID.
read_only string true or false: only read-only or only changing events.
start Any Only events at or after this time (default 24 hours ago, at most 90 days).
end Any Only events before this time.
max_rows int64 Stop after this many rows.
follow bool Keep polling for new events. Use in event artifacts.
poll int64 Seconds between polls in follow mode (default 300).
overlap int64 Seconds each poll re-reads before the last one (default 1800: CloudTrail delivers events up to 15 minutes late).

Required permissions: NETWORK

Platforms: macOS, Linux, Windows