Skip to content

aws-controltower-BaselineCloudTrail: Bucket access denied - Control Tower created cloudtrail

0

Hi all

I am encountering a Bucket access denied error in the aws-controltower-BaselineCloudTrail cloudtrail, specifically affecting only a subset of member accounts. While several other accounts are functioning correctly, these specific accounts continue to show that even after performing an "Update" via the Control Tower console. What could be causing this persistent permission issue?

Enter image description here

asked 10 months ago172 views

2 Answers
0

Check CloudTrail - it should tell you why it's failing. I reckon it's being blocked by SCP. Check if the region is allowed, if not, allow the region. Also, depending on how the account is created, the region might not be enabled in CloudTrail account. For example, certain regions like me-central-1 are not enabled automatically in all accounts and you have to do so every account.

EXPERT

answered 10 months ago

  • As I mentioned, the failure is only occurring in specific accounts. I haven't added any new rules to the SCP, and other accounts under that same SCP are functioning normally, so we can rule that out as the cause. Regarding CloudTrail, which specific events should I be looking for?

0

This "Bucket access denied" error in AWS Control Tower's CloudTrail is a relatively common issue that occurs when the log-archive account doesn't have proper access to the S3 bucket for logging operations.

Here's how you can resolve this issue:

  1. Identify the bucket policy issue: The error indicates that the CloudTrail in certain member accounts cannot write logs to the centralized logging bucket in the log-archive account due to permission restrictions.

  2. Temporary workaround using Break Glass OU:

  • Create a "Break Glass" OU with no Service Control Policies (SCPs) applied
  • Move the log-archive account temporarily to this Break Glass OU
  • Switch to the log-archive account user
  • Navigate to the S3 bucket that stores the CloudTrail logs
  • Select the "Fix Bucket Policy" option
  • Once CloudTrail starts logging properly, move the log-archive account back to its original OU
  1. Address the resulting drift:
  • This modification will create drift between the SCP policy and the bucket policy
  • Update the SCP to reflect the bucket policy changes to bring the security OU back to a compliant state
  1. Alternative approach:
  • You can assume the AWSControlTowerExecution role from the Management account to update the bucket policy
  • However, be aware that this change might get reverted during Control Tower updates

This issue often occurs because Control Tower implements strict security controls by default, which can sometimes be too restrictive for operational needs. The drift you're experiencing is expected since you've modified resources that Control Tower manages.
Sources
Control Tower Issues Are they common? | AWS re:Post
How can I properly modify a bucket managed by control tower? | AWS re:Post

answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.