resource "aws_sns_topic" "dsms_stage_alerts" {
  #checkov:skip=CKV_AWS_26: Ensure all data stored in the SNS topic is encrypted
  name = "${lower(var.vpc_name)}-dsms-stage-alerts"
}

resource "aws_sns_topic_subscription" "eric_dsms_email" {
  topic_arn = aws_sns_topic.dsms_stage_alerts.arn
  protocol  = "email"
  endpoint  = "eric.mansfield.objectlab@sonymusic.com"
}
  
resource "aws_sns_topic_subscription" "craig_dsms_email" {
  topic_arn = aws_sns_topic.dsms_stage_alerts.arn
  protocol  = "email"
  endpoint  = "craig.miller.objectlab@sonymusic.com"
}

resource "aws_sns_topic" "csa_stage_alerts" {
  #checkov:skip=CKV_AWS_26: Ensure all data stored in the SNS topic is encrypted
  name = "${lower(var.vpc_name)}-csa-stage-alerts"
}

resource "aws_sns_topic_subscription" "eric_csa_email" {
  topic_arn = aws_sns_topic.csa_stage_alerts.arn
  protocol  = "email"
  endpoint  = "eric.mansfield.objectlab@sonymusic.com"
}
  
resource "aws_sns_topic_subscription" "craig_csa_email" {
  topic_arn = aws_sns_topic.csa_stage_alerts.arn
  protocol  = "email"
  endpoint  = "craig.miller.objectlab@sonymusic.com"
}

