Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Sep 6, 2023
1 parent 3f01e45 commit 2f8a995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudtrail/cloudwatch.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
locals {
cloudwatch_prefix = replace(aws_cloudwatch_log_group.this.arn, "/:\\*$/", "")
cloudwatch_prefix = try(replace(aws_cloudwatch_log_group.this[0].arn, "/:\\*$/", ""), "")
cloudwatch_suffix = format("%v_CloudTrail_%v*", local.account_id, local.region)
org_cloudwatch_suffix = format("%v_*", var.organization_id)
cloudwatch_resources = join(":", [local.cloudwatch_prefix, "log-stream", local.cloudwatch_suffix])
Expand Down

0 comments on commit 2f8a995

Please sign in to comment.