Interview Prep/AWS/IAM and Access Errors

Organization CloudTrail stopped delivering logs. How do you recover?

AdvancedTroubleshootingIAM and Access Errors
Answer

Likely causes → The bucket policy changed, KMS key permissions broke, or the trail was disabled.

Diagnose →

aws cloudtrail get-trail-status --name org-trail
aws s3api get-bucket-policy --bucket log-archive
aws kms describe-key --key-id <key>

Fix →

  1. Restore bucket policy allowing cloudtrail.amazonaws.com
  2. Fix KMS key policy
  3. aws cloudtrail start-logging --name org-trail

Prevent → Alarm on LatestDeliveryError and protect via SCP.

aws All AWS questions Roadmap: AWS core services

More on IAM and Access Errors