title: Terraform how to send message to SQS configured with cloudwatch
body: <p>I have a terraform project. I need to configure it so that when a message ends up on an SQS queue, then another message is sent to a different queue. So far I have this.</p>
  
  <pre><code>resource "aws_sqs_queue" "x" {
    name                       = "x"
    visibility_timeout_seconds = 600
    message_retention_seconds  = 1209600
    redrive_policy             = "{\"deadLetterTargetArn\":\"${aws_sqs_queue.x_deadletter.arn}\",\"maxReceiveCount\":3}"
  }
  
  resource "aws_sqs_queue" "x_deadletter" {
    name                      = "x_dlq"
    message_retention_seconds = 1209600
  }
  </code></pre>
  
  <p>I have looked in terraform docs and googled and I dont see how to do this. I think I have to do this with cloudwatch but it is unclear. Is it possible? If so how?</p>