# module "notifications_queue" {
#   source = "../../../modules/sqs"
#
#   name_prefix                = local.name_prefix
#   name                       = "notifications"
#   kms_master_key_id          = data.aws_kms_key.default_sqs_key.id
#   visibility_timeout_seconds = 90
#
#   common_tags = merge(
#     local.common_tags,
#     {
#       project                  = "User Preferences",
#       service                  = "SQS",
#       plat_env_project_service = "${local.aggregated_tag}_UP_SQS"
#     }
#   )
# }
#
# resource "aws_sqs_queue_policy" "notifications_queue_policy" {
#   queue_url = module.notifications_queue.queue.id
#
#   policy = <<POLICY
# {
#   "Version": "2012-10-17",
#   "Statement": [
#     {
#       "Effect": "Allow",
#       "Principal": "*",
#       "Action": "sqs:SendMessage",
#       "Resource": "${module.notifications_queue.queue.arn}",
#       "Condition": {
#         "ArnEquals": { "aws:SourceArn": "${module.rti_notifications_bucket.bucket.arn}" }
#       }
#     }
#   ]
# }
# POLICY
# }
