Skip to content

Commit

Permalink
Merge pull request #11 from fl42/fix/input-transformer
Browse files Browse the repository at this point in the history
Fix remediation_url
  • Loading branch information
mvsnogueira-dnx authored Apr 22, 2024
2 parents 8b41cfb + 37267ae commit 7425661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions event-to-email.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resource "aws_cloudwatch_event_target" "sns" {
input_paths = {
"aws_account_id" = "$.detail.findings[0].AwsAccountId"
"aws_region" = "$.region"
"remediation_url" = "$.detail.findings[0].ProductFields.RecommendationUrl"
"remediation_url" = "$.detail.findings[0].Remediation.Recommendation.Url"
"severity" = "$.detail.findings[0].Severity.Label"
"title" = "$.detail.findings[0].Title"
}
Expand Down Expand Up @@ -44,4 +44,4 @@ resource "aws_sns_topic_subscription" "email" {
topic_arn = aws_sns_topic.securityhub[0].arn
protocol = "email"
endpoint = try(var.alarm_email, "")
}
}

0 comments on commit 7425661

Please sign in to comment.