You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Support an S3 bucket in a different account
Allow principals in the S3 bucket's account to use the KMS Key to decrypt logs.
S3 itself cannot tell us which account an arbitrary bucket is in, so the caller must provide it.
Useful when using an Organization CloudTrail and a dedicated AWS account for logs, as recommended by [AWS Multi-account strategy](https://docs.aws.amazon.com/whitepapers/latest/organizing-your-aws-environment/organizing-your-aws-environment.html).
* Output the KMS Key ARN
So it can be used in for a bucket policy or similar.
---------
Co-authored-by: Dan Russell <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,7 @@ previous invocations of the module prior to upgrading the version.
67
67
| key_deletion_window_in_days | Duration in days after which the key is deleted after destruction of the resource, must be 7-30 days. Default 30 days. |`string`|`30`| no |
68
68
| log_retention_days | Number of days to keep AWS logs around in specific log group. |`string`|`90`| no |
69
69
| org_trail | Whether or not this is an organization trail. Only valid in master account. |`string`|`"false"`| no |
70
+
| s3_bucket_account_id | (optional) The AWS account ID which owns the S3 bucket. Only include if the S3 bucket is in a different account than the CloudTrail. |`string`|`null`| no |
70
71
| s3_key_prefix | S3 key prefix for CloudTrail logs |`string`|`"cloudtrail"`| no |
71
72
| sns_topic_arn | ARN of the SNS topic for notification of log file delivery. |`string`|`""`| no |
72
73
| tags | A mapping of tags to CloudTrail resources. |`map(string)`|`{}`| no |
@@ -79,6 +80,7 @@ previous invocations of the module prior to upgrading the version.
79
80
| cloudtrail_arn | CloudTrail ARN |
80
81
| cloudtrail_home_region | CloudTrail Home Region |
0 commit comments