Skip to content

Commit

Permalink
Setting to index 0
Browse files Browse the repository at this point in the history
  • Loading branch information
agnivade committed Dec 30, 2024
1 parent d6609d5 commit d42b26b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions deployment/terraform/assets/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion deployment/terraform/assets/elasticsearch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ resource "aws_opensearch_domain" "es_server" {
dynamic "log_publishing_options" {
for_each = var.es_enable_cloudwatch_logs ? [true] : []
content {
cloudwatch_log_group_arn = aws_cloudwatch_log_group.es_log_group.arn
# Just using index 0 because the count is mainly used to control one or none.
# We don't have a need for multiple log groups.
# https://github.com/mattermost/mattermost-load-test-ng/pull/874#issuecomment-2544984861
cloudwatch_log_group_arn = aws_cloudwatch_log_group.es_log_group[0].arn
log_type = "ES_APPLICATION_LOGS"
}
}
Expand Down

0 comments on commit d42b26b

Please sign in to comment.