awsdocs / iam-user-guide

Official documentation source for the AWS Identity and Access Management (IAM) User Guide
MIT No Attribution
324 stars 355 forks source link

Use correct CloudTrail s3 log folder structure #285

Closed jbarnes closed 1 year ago

jbarnes commented 1 year ago

Issue #, if available:

Description of changes:

This commit amends the existing incorrect AWS CloudTrail S3 bucket folder structure to match the correct folder structure

The folder structure cascades in the following manner;

The existing documentation has the AWSLogs and <organization-id> in the incorrect order

Changes

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

ljquin commented 1 year ago

Thank you for taking the time to submit a pull request. The existing JSON policy example is correct as is.

The Organizations CloudTrail trail S3 path in the example policy is the default S3 path when you use CloudTrail to create the Organization trail. If Control Tower was used to setup the Organizations CloudTrail the S3 path would be different.

The following is a CloudTrail console screenshot showing the default S3 log path of where the logs will be stored: Screen Shot 2022-12-27 at 11 13 53 AM copy


For examples of CloudTrail trail S3 paths see the following link: Finding your CloudTrail log files - https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html

ljquin commented 1 year ago

Duplicate of #271