Skip to content

Commit

Permalink
Change Alarm Statistic: SampleCount to Sum. (#2390)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew-Grayson authored Nov 22, 2023
1 parent 99f769f commit c2e2d24
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions infrastructure/log_alarms.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "aws_cloudwatch_metric_alarm" "root_user" {
evaluation_periods = 1
period = 60
threshold = 1
statistic = "SampleCount"
statistic = "Sum"

tags = {
Project = var.project
Expand All @@ -25,7 +25,7 @@ resource "aws_cloudwatch_metric_alarm" "unauthorized_api_call" {
evaluation_periods = 1
period = 60
threshold = 1
statistic = "SampleCount"
statistic = "Sum"

tags = {
Project = var.project
Expand All @@ -43,7 +43,7 @@ resource "aws_cloudwatch_metric_alarm" "login_without_mfa" {
evaluation_periods = 1
period = 60
threshold = 1
statistic = "SampleCount"
statistic = "Sum"

tags = {
Project = var.project
Expand All @@ -61,7 +61,7 @@ resource "aws_cloudwatch_metric_alarm" "iam_policy" {
evaluation_periods = 1
period = 60
threshold = 1
statistic = "SampleCount"
statistic = "Sum"

tags = {
Project = var.project
Expand All @@ -79,7 +79,7 @@ resource "aws_cloudwatch_metric_alarm" "cloudtrail" {
evaluation_periods = 1
period = 60
threshold = 1
statistic = "SampleCount"
statistic = "Sum"

tags = {
Project = var.project
Expand All @@ -97,7 +97,7 @@ resource "aws_cloudwatch_metric_alarm" "login_failure" {
evaluation_periods = 1
period = 60
threshold = 1
statistic = "SampleCount"
statistic = "Sum"

tags = {
Project = var.project
Expand All @@ -115,7 +115,7 @@ resource "aws_cloudwatch_metric_alarm" "cmk_delete_disable" {
evaluation_periods = 1
period = 60
threshold = 1
statistic = "SampleCount"
statistic = "Sum"

tags = {
Project = var.project
Expand All @@ -133,7 +133,7 @@ resource "aws_cloudwatch_metric_alarm" "s3_bucket_policy" {
evaluation_periods = 1
period = 60
threshold = 1
statistic = "SampleCount"
statistic = "Sum"

tags = {
Project = var.project
Expand All @@ -151,7 +151,7 @@ resource "aws_cloudwatch_metric_alarm" "aws_config" {
evaluation_periods = 1
period = 60
threshold = 1
statistic = "SampleCount"
statistic = "Sum"

tags = {
Project = var.project
Expand All @@ -169,7 +169,7 @@ resource "aws_cloudwatch_metric_alarm" "security_group" {
evaluation_periods = 1
period = 60
threshold = 1
statistic = "SampleCount"
statistic = "Sum"

tags = {
Project = var.project
Expand All @@ -187,7 +187,7 @@ resource "aws_cloudwatch_metric_alarm" "nacl" {
evaluation_periods = 1
period = 60
threshold = 1
statistic = "SampleCount"
statistic = "Sum"

tags = {
Project = var.project
Expand All @@ -205,7 +205,7 @@ resource "aws_cloudwatch_metric_alarm" "network_gateway" {
evaluation_periods = 1
period = 60
threshold = 1
statistic = "SampleCount"
statistic = "Sum"

tags = {
Project = var.project
Expand All @@ -223,7 +223,7 @@ resource "aws_cloudwatch_metric_alarm" "route_table" {
evaluation_periods = 1
period = 60
threshold = 1
statistic = "SampleCount"
statistic = "Sum"

tags = {
Project = var.project
Expand All @@ -241,7 +241,7 @@ resource "aws_cloudwatch_metric_alarm" "vpc" {
evaluation_periods = 1
period = 60
threshold = 1
statistic = "SampleCount"
statistic = "Sum"

tags = {
Project = var.project
Expand All @@ -259,7 +259,7 @@ resource "aws_cloudwatch_metric_alarm" "ec2_shutdown" {
evaluation_periods = 1
period = 60
threshold = 1
statistic = "SampleCount"
statistic = "Sum"

tags = {
Project = var.project
Expand All @@ -277,7 +277,7 @@ resource "aws_cloudwatch_metric_alarm" "db_shutdown" {
evaluation_periods = 1
period = 60
threshold = 1
statistic = "SampleCount"
statistic = "Sum"

tags = {
Project = var.project
Expand All @@ -295,7 +295,7 @@ resource "aws_cloudwatch_metric_alarm" "db_deletion" {
evaluation_periods = 1
period = 60
threshold = 1
statistic = "SampleCount"
statistic = "Sum"

tags = {
Project = var.project
Expand Down

0 comments on commit c2e2d24

Please sign in to comment.