Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions infrastructure/stacks/api-layer/cloudwatch_alarms.tf
Original file line number Diff line number Diff line change
Expand Up @@ -519,32 +519,3 @@ resource "aws_cloudwatch_metric_alarm" "splunk_backup_delivery_failure" {
ManagedBy = "terraform"
}
}

resource "aws_cloudwatch_metric_alarm" "splunk_backup_objects_present" {
alarm_name = "SplunkBackupS3ObjectsPresent"
alarm_description = "Triggers if there are any objects in the backup S3 bucket, indicating a Firehose delivery failure to Splunk."

namespace = "AWS/S3"
metric_name = "NumberOfObjects"
statistic = "Average"
period = 3600
evaluation_periods = 1
threshold = 0
comparison_operator = "GreaterThanThreshold"
treat_missing_data = "notBreaching"

dimensions = {
BucketName = "${var.project_name}-${var.environment}-eli-splunk"
StorageType = "AllStorageTypes"
}

alarm_actions = [aws_sns_topic.cloudwatch_alarms.arn]

tags = {
Environment = var.environment
AlertType = "data-delivery-failure"
Service = "s3"
Severity = "high"
ManagedBy = "terraform"
}
}
Loading