Score:0

AWS CodeStar SNS notification delivers JSON as email body

cn flag

I have created a notification rule in CodeBuild to deliver notifications about build errors by e-mail. Unfortunately, the generated emails are just a plaintext email with the body being a truckload of JSON and not, like e.g. Cloudwatch Alerts, a proper human-readable text. What am I doing wrong?

I created the rule and SNS topic using this Terraform code:

resource "aws_sns_topic" "build-monitoring" {
  name              = "build-monitoring"
}

resource "aws_codestarnotifications_notification_rule" "build-monitoring" {
  name        = "build-monitoring"
  detail_type = "BASIC"
  event_type_ids = [
    "codebuild-project-build-state-failed",
    "codebuild-project-build-state-succeeded",
    "codebuild-project-build-state-stopped",
  ]
  resource = aws_codebuild_project.project.arn
  target {
    type    = "SNS"
    address = aws_sns_topic.build-monitoring.arn
  }
}
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.