Skip to content

Commit

Permalink
Fix basic config
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoelho93 committed Dec 19, 2024
1 parent e30a4af commit 3f9f622
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions internal/service/logs/index_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,19 +300,15 @@ func testAccCheckIndexPolicyNotRecreated(before, after *cloudwatchlogs.DescribeI
}
}

func testAccIndexPolicyConfig_basic(rName, version string) string {
func testAccIndexPolicyConfig_basic(logGroupName string, policyDocument string) string {
return fmt.Sprintf(`
resource "aws_cloudwatch_log_group" "test" {
name = %[1]q
}
resource "aws_cloudwatch_log_index_policy" "test" {
log_group_name = aws_cloudwatch_log_group.test.name
policy_document = jsonencode({
Fields = [
"eventName"
]
})
policy_document = jsonencode(%[2]q)
}
`, rName, version)
`, logGroupName, policyDocument)
}

0 comments on commit 3f9f622

Please sign in to comment.