Skip to content

Instantly share code, notes, and snippets.

{
"Version": "2012-10-17",
"Id": "Key policy created for CloudTrail",
"Statement": [
{
"Sid": "Enable IAM User Permissions",
"Effect": "Allow",
"Principal": {
"AWS": "[account-id]/[user-id]"
},
aws cloudtrail update-trail --name my-trail --no-is-multi-region-trail --no-include-global-service-events
aws cloudtrail update-trail --name my-trail --s3-bucket-name not-my-bucket
aws cloudtrail stop-logging --name my-trail
aws cloudtrail delete-trail --name my-trail
aws cloudtrail describe-trails