```hcl
module "snapshot_generator_queue" {
  source      = "git::https://github.com/wellcometrust/terraform-modules.git//sqs?ref=v8.0.2"
  queue_name  = "snapshot_generator_queue"
  aws_region  = "${var.aws_region}"
  account_id  = "${data.aws_caller_identity.current.account_id}"
  topic_names = ["${module.snapshot_scheduler.topic_name}"]

  alarm_topic_arn            = "${local.dlq_alarm_arn}"
  visibility_timeout_seconds = 1800
}

# We'll get alarms from the snapshot generator DLQ, but it's also a problem
# if the main queue starts backfilling -- it means snapshots aren't being
# created correctly.
#
resource "aws_cloudwatch_metric_alarm" "snapshot_scheduler_queue_not_empty" {
  alarm_name          = "snapshot_scheduler_queue_not_empty"
  comparison_operator = "GreaterThanThreshold"
  evaluation_periods  = 1
  metric_name         = "ApproximateNumberOfMessagesVisible"
  namespace           = "AWS/SQS"
  period              = 60
  threshold           = 2
  statistic           = "Average"

  dimensions {
    QueueName = "${aws_sqs_queue.snapshot_generator_queue.name}"
  }

  alarm_actions = ["${local.dlq_alarm_arn}"]
}
```

Fix a terraform definition in the data_api
user
```hcl
module "snapshot_generator_queue" {
  source      = "git::https://github.com/wellcometrust/terraform-modules.git//sqs?ref=v8.0.2"
  queue_name  = "snapshot_generator_queue"
  aws_region  = "${var.aws_region}"
  account_id  = "${data.aws_caller_identity.current.account_id}"
  topic_names = ["${module.snapshot_scheduler.topic_name}"]

  alarm_topic_arn            = "${local.dlq_alarm_arn}"
  visibility_timeout_seconds = 1800
}

# We'll get alarms from the snapshot generator DLQ, but it's also a problem
# if the main queue starts backfilling -- it means snapshots aren't being
# created correctly.
#
resource "aws_cloudwatch_metric_alarm" "snapshot_scheduler_queue_not_empty" {
  alarm_name          = "snapshot_scheduler_queue_not_empty"
  comparison_operator = "GreaterThanThreshold"
  evaluation_periods  = 1
  metric_name         = "ApproximateNumberOfMessagesVisible"
  namespace           = "AWS/SQS"
  period              = 60
  threshold           = 2
  statistic           = "Average"

  dimensions {
    QueueName = "${module.snapshot_generator_queue.name}"
  }

  alarm_actions = ["${local.dlq_alarm_arn}"]
}
```
assistant