-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Cloudtrail logging for s3 events (#333)
* feat: Cloudtrail logging for s3 events * feat: Cloudtrail logging for s3 events
- Loading branch information
1 parent
f538283
commit 6aeb94f
Showing
2 changed files
with
13 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,19 @@ | ||
output "cloudtrail_bucket_name" { | ||
description = "Name of the S3 bucket storing CloudTrail logs specific to S3 events" | ||
value = var.enable_cloudtrail_s3_logging ? aws_s3_bucket.cloudtrail_logs[0].bucket : null | ||
value = aws_s3_bucket.cloudtrail_logs.bucket | ||
} | ||
|
||
output "cloudtrail_bucket_arn" { | ||
description = "ARN of the S3 bucket storing CloudTrail logs specific to S3 events" | ||
value = var.enable_cloudtrail_s3_logging ? aws_s3_bucket.cloudtrail_logs[0].arn : null | ||
value = aws_s3_bucket.cloudtrail_logs.arn | ||
} | ||
|
||
output "cloudtrail_name" { | ||
description = "Name of the CloudTrail instance" | ||
value = var.enable_cloudtrail_s3_logging ? aws_cloudtrail.s3_event_logs[0].name : null | ||
value = aws_cloudtrail.s3_event_logs.name | ||
} | ||
|
||
output "cloudtrail_arn" { | ||
description = "ARN of the CloudTrail instance" | ||
value = var.enable_cloudtrail_s3_logging ? aws_cloudtrail.s3_event_logs[0].arn : null | ||
} | ||
|
||
output "force_destroy_warning" { | ||
description = "Warning message if force_destroy is enabled" | ||
value = var.force_destroy ? "WARNING: The S3 bucket is configured to be forcefully destroyed." : null | ||
} | ||
value = aws_cloudtrail.s3_event_logs.arn | ||
} |