Skip to content

Commit

Permalink
2118 au 05 audit process migrate logs to s3 buckets (#2198)
Browse files Browse the repository at this point in the history
* Give s3 bucket and cloudwatch role unique names.
  • Loading branch information
Matthew-Grayson authored Aug 25, 2023
1 parent c15096b commit 773df72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infrastructure/cloudtrail.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ resource "aws_cloudwatch_log_group" "cloudtrail" {

resource "aws_cloudtrail" "all-events" {
name = "all-events"
s3_bucket_name = var.logging_bucket_name
cloud_watch_logs_role_arn = "arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/${var.logging_bucket_name}-cloudtrail-role"
s3_bucket_name = "crossfeed-${var.stage}-cloudtrail-logs"
cloud_watch_logs_role_arn = "arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/${var.stage}-cloudtrail-role"
cloud_watch_logs_group_arn = "${aws_cloudwatch_log_group.cloudtrail.arn}:*"
tags = {
Project = var.project
Expand Down

0 comments on commit 773df72

Please sign in to comment.