aws-cloudtrail

Configure AWS CloudTrail organization trails with KMS encryption and CloudTrail Lake.

46|4|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/BagelHole/DevOps-Security-Agent-Skills --skill aws-cloudtrail
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: aws-cloudtrail
Source: https://github.com/BagelHole/DevOps-Security-Agent-Skills/tree/main/compliance/auditing/aws-cloudtrail
Command: npx skills add https://github.com/BagelHole/DevOps-Security-Agent-Skills --skill aws-cloudtrail

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you maintain a robust audit trail of all activities within your AWS environment, crucial for security, compliance, and troubleshooting.

Core Features & Use Cases

  • Organization-wide Auditing: Set up a central trail to log events across all accounts in your AWS Organization.
  • Comprehensive Event Logging: Capture management events and optionally data events for specific S3 buckets.
  • Secure Log Storage: Enable log file validation and encrypt logs using AWS KMS for enhanced security.
  • Advanced Querying: Utilize CloudTrail Lake to run SQL queries against your audit logs for in-depth analysis.
  • Use Case: Ensure compliance with regulatory requirements by logging all API calls and user actions within your AWS infrastructure, and be able to quickly query for specific security-relevant events like deletions or unauthorized access attempts.

Quick Start

Configure an organization-wide CloudTrail trail named 'org-audit-trail' to log all management events and data events for a sensitive S3 bucket.

Frequently Asked Questions about aws-cloudtrail

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up AWS CloudTrail for organization-wide audit logging?▼

AWS CloudTrail organization-wide audit logging is configured by creating a central trail to log management and data events across all accounts in your AWS Organization. This ensures comprehensive visibility into API calls and user actions within your infrastructure.

Can I encrypt AWS CloudTrail logs with KMS and enable log file validation?▼

Yes, AWS CloudTrail logs can be encrypted using AWS KMS and log file validation can be enabled. This provides secure log storage and helps detect tampering, ensuring your audit trails remain intact for compliance and security analysis.

How do I query AWS CloudTrail logs using SQL for specific security events?▼

You can query AWS CloudTrail logs using SQL by enabling CloudTrail Lake. This feature allows you to run advanced SQL queries against your audit logs to quickly find specific security-relevant events like unauthorized access attempts or resource deletions.

Does AWS CloudTrail support logging data events for specific S3 buckets?▼

Yes, AWS CloudTrail supports logging data events for specific S3 buckets through event selectors. You can configure these selectors to capture comprehensive management events and targeted data events to meet your regulatory compliance requirements.

What is the best way to maintain a compliance audit trail for AWS API calls?▼

The best way to maintain a compliance audit trail for AWS API calls is configuring a multi-region CloudTrail trail with KMS encryption and log validation. This captures all user actions and API calls for troubleshooting and security compliance.

Why use event selectors when configuring AWS CloudTrail?▼

Event selectors are used when configuring AWS CloudTrail to specify exactly which resource types log data events. This allows you to target specific S3 buckets or resources, reducing log volume while capturing the precise activity needed for auditing.