Open priolix opened 1 year ago
Hi Adrien! Thank you for utilizing the Landing Zone Accelerator on AWS (LZA) solution. LZA was designed to be modular for when AWS Control Tower was not available in regions/partitions for customers. If you're using AWS Control Tower, the service will automatically configure account-level CloudTrails (for each account in AWS Control Tower's management). In this case, you don't have to enable CloudTrail for your accounts, to help avoid duplication.
In terms of point 2 regarding only see the ConfigSnapshot, the aws-accelerator-central-logs bucket contains logs for services that you enable through the Accelerator such as AWS CloudWatch Logs, GuardDuty, etc...
I will leave this issue open should you have any other questions or concerns.
Hi, what would be the recommended way for setting up the logging in the global-config.yaml? Assuming that Control Tower is used and we would like to avoid log duplication.
Hi @bo1984 - I'm also curious with regards to the above and echo @atte-hemminki's quesion.
Describe the bug CloudTrail logs seem to be replicated when the solution is deployed alongside AWS Control Tower.
To Reproduce Steps to reproduce the behavior:
Expected behavior CloudTrail logs should not be replicated when the solution is deployed alongside AWS Control Tower.
Please complete the following information about the solution:
Additional context CloudTrail log duplication appears to be related to the deployment of the solution alongside AWS Control Tower. AWS Config logs indicate that only logs from the master account are stored by the accelerator. global-config.yaml :
Landing Zone Accelerator Landing Zone Accelerator deploys its own logging configuration, including security-config.yaml and various log types such as AWSLogs, Cloudtrail-AccountTrail, CloudWatchLogs, cur, session, and vpc-flow-logs. It also handles S3 access logs for the accelerator.
Control Tower Control Tower also manages logging, including AWS ControlTowerCloudTrailRole and aws-controltower-logs-918467205374-ca-central-1 log group. This log group contains logs related to Control Tower and AWSConfig logs for each account.
To resume We are facing 2 problems :