Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Dec 26, 2024
1 parent 6c82206 commit e24d575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudtrail/cloudtrail.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ resource "aws_iam_role" "cloudtrail" {

resource "aws_iam_role_policy_attachment" "cloudtrail" {
count = var.enable_cloudwatch_logs ? 1 : 0
role = try(aws_iam_role.cloudtrail[0].arn, null)
role = try(aws_iam_role.cloudtrail[0].name, null)
policy_arn = try([aws_iam_policy.cloudtrail_policy[0].arn], null)
}

Expand Down

0 comments on commit e24d575

Please sign in to comment.