A media streaming company with AWS accounts organized under a single organization in AWS Organizations needs to implement a centralized auditing architecture. The security team requires that all API activity across all current and future accounts and regions be recorded using AWS CloudTrail. The logs must be consolidated in a centralized Amazon S3 bucket within a dedicated Security account. The logs must be encrypted using a Customer Managed Key (CMK) in AWS Key Management Service (AWS KMS) that is owned and managed by the Security account. Additionally, member account administrators must be prevented from modifying or deleting the CloudTrail configuration. Which of the following architectures meets these requirements with the least operational overhead?
- ACreate an organization trail from the AWS Organizations management account to write logs directly to the Security account's S3 bucket. Rather than modifying the S3 bucket policy in the Security account, attach a Service Control Policy (SCP) to the root of the organization that allows s3:PutObject access for all member accounts to the Security account's S3 bucket, and rely on IAM policy inheritance to grant write access.
- Configure an organization trail from the AWS Organizations management account to deliver logs to the S3 bucket in the Security account. In the Security account, update the S3 bucket policy to allow the cloudtrail.amazonaws.com service principal to perform s3:GetBucketAcl and s3:PutObject actions, restricted to the organization's S3 prefix path. Configure the KMS key policy for the Customer Managed Key (CMK) in the Security account to allow the cloudtrail.amazonaws.com service principal to use the key with a condition restricting access to the organization's CloudTrail ARNs. Apply a Service Control Policy (SCP) at the Organization root that denies cloudtrail:StopLogging, cloudtrail:DeleteTrail, and cloudtrail:UpdateTrail actions.Cevap
- CConfigure individual trails in each of the member accounts to deliver logs to local S3 buckets. Enable S3 Cross-Region Replication (CRR) to copy all log objects to the centralized S3 bucket in the Security account. Encrypt the destination S3 bucket using the AWS-managed KMS key (aws/s3) to avoid managing custom key policies, and attach a Service Control Policy (SCP) to the organization root that denies member accounts the ability to modify replication configurations.
- DConfigure an organization trail from the AWS Organizations management account to deliver logs to the Security account's S3 bucket. Update the S3 bucket policy in the Security account to allow s3:PutObject and s3:GetBucketAcl actions to all IAM users within the member accounts by specifying the wildcard * principal combined with the aws:PrincipalOrgID condition. Set up the KMS CMK key policy in the Security account to grant kms:GenerateDataKey* permissions to the member accounts' IAM roles.