Skip to content

Commit

Permalink
create an sns topic for cloudwatch app insghts (#1008)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpearce-digital authored Jan 29, 2024
1 parent 9a5cfed commit cd75e3b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions terraform/account/region/sns_topics.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,24 @@ resource "aws_sns_topic" "ecs_autoscaling_alarms" {
sqs_success_feedback_sample_rate = 100
provider = aws.region
}

resource "aws_sns_topic" "cloudwatch_application_insights" {
name = "cloudwatch_application_insights"
kms_master_key_id = data.aws_kms_alias.sns_kms_key_alias.target_key_id
application_failure_feedback_role_arn = data.aws_iam_role.sns_failure_feedback.arn
application_success_feedback_role_arn = data.aws_iam_role.sns_success_feedback.arn
application_success_feedback_sample_rate = 100
firehose_failure_feedback_role_arn = data.aws_iam_role.sns_failure_feedback.arn
firehose_success_feedback_role_arn = data.aws_iam_role.sns_success_feedback.arn
firehose_success_feedback_sample_rate = 100
http_failure_feedback_role_arn = data.aws_iam_role.sns_failure_feedback.arn
http_success_feedback_role_arn = data.aws_iam_role.sns_success_feedback.arn
http_success_feedback_sample_rate = 100
lambda_failure_feedback_role_arn = data.aws_iam_role.sns_failure_feedback.arn
lambda_success_feedback_role_arn = data.aws_iam_role.sns_success_feedback.arn
lambda_success_feedback_sample_rate = 100
sqs_failure_feedback_role_arn = data.aws_iam_role.sns_failure_feedback.arn
sqs_success_feedback_role_arn = data.aws_iam_role.sns_success_feedback.arn
sqs_success_feedback_sample_rate = 100
provider = aws.region
}

0 comments on commit cd75e3b

Please sign in to comment.