Back to Skills

setting-up-cloudtrail-multi-region

Enables a multi-region AWS CloudTrail trail with S3 log storage, CloudWatch Logs integration, and CloudWatch Logs Insights queries for security monitoring and compliance auditing. Use when setting up centralized API activity logging across all AWS regions.

1,932stars174forksUpdated 7/17/2026

Security Assessment

Safe(100/100)
Security Score100/100

About setting-up-cloudtrail-multi-region

This skill provides domain expertise for enabling an AWS CloudTrail trail across all regions so that comprehensive API activity logs are captured centrally. It solves the problem of fragmented or incomplete audit logging by walking through the creation of a multi-region trail backed by S3 log storage, integrated with CloudWatch Logs, and paired with CloudWatch Logs Insights queries. The goal is to support security monitoring, compliance auditing, and operational analysis from a single, consistent logging setup.

The core workflow is to follow a documented setup procedure exactly, referenced as the CloudTrail multi-region setup procedure in references/cloudtrail-multi-region-setup.md, which covers creating the trail with S3 storage, wiring in CloudWatch Logs, and running log analysis via CloudWatch Logs Insights. The skill also includes a troubleshooting section covering common failure modes: choosing a different globally unique name when an S3 bucket already exists, verifying identity with aws sts get-caller-identity for permission-denied errors, ensuring the trail is started with start-logging when it is not logging, and confirming the CloudWatch Logs role ARN and log group region when events are missing from CloudWatch.

This skill targets AWS practitioners, security engineers, and compliance teams who need centralized API activity logging. It emphasizes least-privilege practices, explicitly advising against using *FullAccess managed policies and instead attaching only the required actions to the user or role. It also sets expectations around timing: initial log delivery can take 5-15 minutes, and events from opt-in regions may take several hours and up to 24 hours before they warrant further investigation, so patience is required before concluding that logging is broken.

FAQ

What does this skill set up?

It enables a multi-region AWS CloudTrail trail with S3 log storage, CloudWatch Logs integration, and CloudWatch Logs Insights queries for security monitoring, compliance auditing, and operational analysis.

What should I do if the S3 bucket already exists?

Choose a different globally unique name, or add a timestamp or organization identifier to make the bucket name unique.

How do I resolve permission denied errors?

Verify your identity with aws sts get-caller-identity and ensure your user or role has the required actions attached. The skill advises not to use *FullAccess managed policies.

Why aren't events showing up in CloudWatch yet?

Allow 5-15 minutes for initial log delivery, and verify the CloudWatch Logs role ARN is correct and the log group exists in the same region as the trail. Events from opt-in regions can take several hours, so wait up to 24 hours before investigating further.

What if the trail is not logging?

Verify IAM role permissions, check that the S3 bucket policy allows CloudTrail access, and ensure the trail is started with start-logging.

All Files

2 files
references/cloudtrail-multi-region-setup.md17.7 KB
View
SKILL.md1.7 KB
View

Install setting-up-cloudtrail-multi-region

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill