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 e24d575 commit 5957146
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 @@ -55,7 +55,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].name, null)
policy_arn = try([aws_iam_policy.cloudtrail_policy[0].arn], null)
policy_arn = try(aws_iam_policy.cloudtrail_policy[0].arn, null)
}

data "aws_iam_policy_document" "cloudtrail_assume" {
Expand Down

0 comments on commit 5957146

Please sign in to comment.