│ Error: Error in function call
│
│ on .terraform/modules/notify_slack_east.notify_slack/main.tf line 28, in locals:
│ 28: resources = [replace("${element(concat(aws_cloudwatch_log_group.lambda[*].arn, list("")), 0)}:*", ":*:*", ":*")]
│
│ Call to function "list" failed: the "list" function was deprecated in Terraform v0.12 and is no longer available; use tolist([ ... ]) syntax to write a literal list.
module "notify_slack_east" {
source = "git::https://github.com/cloudposse/terraform-aws-sns-lambda-notify-slack?ref=tags/0.5.3"
namespace = var.team
create_sns_topic = true
sns_topic_name = "${var.team}-slack-notifications-alarm-east"
name = "notifications-east"
attributes = ["alarm"]
slack_webhook_url = var.client_alarms_slack_webhook_url
slack_channel = "alarm"
slack_username = module.notify_slack_username.id
tags = module.config.tags
providers = {
aws = aws.east
}
}
Anything that will help us triage the bug will help. Here are some ideas: