Skip to content

Commit

Permalink
fix log options
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolnagpal committed Jan 11, 2021
1 parent 450ad08 commit e4f91f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -202,19 +202,19 @@ resource "aws_elasticsearch_domain" "single" {
log_publishing_options {
enabled = var.log_publishing_index_enabled
log_type = "INDEX_SLOW_LOGS"
cloudwatch_log_group_arn = format("%s:*", join("", aws_cloudwatch_log_group.cloudwatch.*.arn))
cloudwatch_log_group_arn = join("", aws_cloudwatch_log_group.cloudwatch.*.arn)
}

log_publishing_options {
enabled = var.log_publishing_search_enabled
log_type = "SEARCH_SLOW_LOGS"
cloudwatch_log_group_arn = format("%s:*", join("", aws_cloudwatch_log_group.cloudwatch.*.arn))
cloudwatch_log_group_arn = join("", aws_cloudwatch_log_group.cloudwatch.*.arn)
}

log_publishing_options {
enabled = var.log_publishing_application_enabled
log_type = "ES_APPLICATION_LOGS"
cloudwatch_log_group_arn = format("%s:*", join("", aws_cloudwatch_log_group.cloudwatch.*.arn))
cloudwatch_log_group_arn = join("", aws_cloudwatch_log_group.cloudwatch.*.arn)
}

domain_endpoint_options {
Expand Down

0 comments on commit e4f91f2

Please sign in to comment.