diff --git a/aws/common/outputs.tf b/aws/common/outputs.tf index 5dd4a245d..a40b71eab 100644 --- a/aws/common/outputs.tf +++ b/aws/common/outputs.tf @@ -212,3 +212,31 @@ output "subnet_cidr_blocks" { output "sns_monthly_spend_limit" { value = var.sns_monthly_spend_limit } + +output "celery_queue_prefix" { + value = var.celery_queue_prefix +} + +output "sqs_send_sms_high_queue_delay_warning_arn" { + value = var.cloudwatch_enabled ? aws_cloudwatch_metric_alarm.sqs-send-sms-high-queue-delay-warning[0].arn : "" +} + +output "sqs_send_sms_high_queue_delay_critical_arn" { + value = var.cloudwatch_enabled ? aws_cloudwatch_metric_alarm.sqs-send-sms-high-queue-delay-critical[0].arn : "" +} + +output "sqs_send_sms_medium_queue_delay_warning_arn" { + value = var.cloudwatch_enabled ? aws_cloudwatch_metric_alarm.sqs-send-sms-medium-queue-delay-warning[0].arn : "" +} + +output "sqs_send_sms_medium_queue_delay_critical_arn" { + value = var.cloudwatch_enabled ? aws_cloudwatch_metric_alarm.sqs-send-sms-medium-queue-delay-critical[0].arn : "" +} + +output "sqs_send_sms_low_queue_delay_warning_arn" { + value = var.cloudwatch_enabled ? aws_cloudwatch_metric_alarm.sqs-send-sms-low-queue-delay-warning[0].arn : "" +} + +output "sqs_send_sms_low_queue_delay_critical_arn" { + value = var.cloudwatch_enabled ? aws_cloudwatch_metric_alarm.sqs-send-sms-low-queue-delay-critical[0].arn : "" +} diff --git a/aws/pinpoint_to_sqs_sms_callbacks/cloudwatch_alarms.tf b/aws/pinpoint_to_sqs_sms_callbacks/cloudwatch_alarms.tf index bc5387995..e059f65f9 100644 --- a/aws/pinpoint_to_sqs_sms_callbacks/cloudwatch_alarms.tf +++ b/aws/pinpoint_to_sqs_sms_callbacks/cloudwatch_alarms.tf @@ -194,7 +194,7 @@ resource "aws_cloudwatch_metric_alarm" "pinpoint-sms-success-rate-warning" { } } -resource "aws_cloudwatch_metric_alarm" "pinpoint-sms-success-rate-canadian-numbers-critical" { +resource "aws_cloudwatch_metric_alarm" "pinpoint-sms-success-rate-critical" { count = var.cloudwatch_enabled ? 1 : 0 alarm_name = "pinpoint-sms-success-rate-canadian-numbers-critical" alarm_description = "Pinpoint SMS success rate to Canadian numbers is below 25% over 2 consecutive periods of 12 hours" diff --git a/aws/pinpoint_to_sqs_sms_callbacks/dashboards.tf b/aws/pinpoint_to_sqs_sms_callbacks/dashboards.tf new file mode 100644 index 000000000..b3906643b --- /dev/null +++ b/aws/pinpoint_to_sqs_sms_callbacks/dashboards.tf @@ -0,0 +1,504 @@ +resource "aws_cloudwatch_dashboard" "pinpoint" { + count = var.cloudwatch_enabled ? 1 : 0 + dashboard_name = "Pinpoint" + dashboard_body = <