@@ -110,6 +110,7 @@ resource "aws_cloudwatch_metric_alarm" "unauthorized_api_calls" {
110
110
metric_name = join (" " , aws_cloudwatch_log_metric_filter. unauthorized_api_calls . * . id )
111
111
namespace = var. alarm_namespace
112
112
period = " 300"
113
+ unit = var. unit
113
114
statistic = " Sum"
114
115
threshold = " 1"
115
116
alarm_description = " Monitoring unauthorized API calls will help reveal application errors and may reduce time to detect malicious activity."
@@ -147,6 +148,7 @@ resource "aws_cloudwatch_metric_alarm" "no_mfa_console_signin" {
147
148
metric_name = join (" " , aws_cloudwatch_log_metric_filter. no_mfa_console_signin . * . id )
148
149
namespace = var. alarm_namespace
149
150
period = " 300"
151
+ unit = var. unit
150
152
statistic = " Sum"
151
153
threshold = " 1"
152
154
alarm_description = " Monitoring for single-factor console logins will increase visibility into accounts that are not protected by MFA."
@@ -184,6 +186,7 @@ resource "aws_cloudwatch_metric_alarm" "root_usage" {
184
186
metric_name = join (" " , aws_cloudwatch_log_metric_filter. root_usage . * . id )
185
187
namespace = var. alarm_namespace
186
188
period = " 300"
189
+ unit = var. unit
187
190
statistic = " Sum"
188
191
threshold = " 1"
189
192
alarm_description = " Monitoring for root account logins will provide visibility into the use of a fully privileged account and an opportunity to reduce the use of it."
@@ -221,6 +224,7 @@ resource "aws_cloudwatch_metric_alarm" "iam_changes" {
221
224
metric_name = join (" " , aws_cloudwatch_log_metric_filter. iam_changes . * . id )
222
225
namespace = var. alarm_namespace
223
226
period = " 300"
227
+ unit = var. unit
224
228
statistic = " Sum"
225
229
threshold = " 1"
226
230
alarm_description = " Monitoring changes to IAM policies will help ensure authentication and authorization controls remain intact."
@@ -258,6 +262,7 @@ resource "aws_cloudwatch_metric_alarm" "cloudtrail_cfg_changes" {
258
262
metric_name = join (" " , aws_cloudwatch_log_metric_filter. cloudtrail_cfg_changes . * . id )
259
263
namespace = var. alarm_namespace
260
264
period = " 300"
265
+ unit = var. unit
261
266
statistic = " Sum"
262
267
threshold = " 1"
263
268
alarm_description = " Monitoring changes to CloudTrail's configuration will help ensure sustained visibility to activities performed in the AWS account."
@@ -296,6 +301,7 @@ resource "aws_cloudwatch_metric_alarm" "console_signin_failures" {
296
301
metric_name = join (" " , aws_cloudwatch_log_metric_filter. console_signin_failures . * . id )
297
302
namespace = var. alarm_namespace
298
303
period = " 300"
304
+ unit = var. unit
299
305
statistic = " Sum"
300
306
threshold = " 1"
301
307
alarm_description = " Monitoring failed console logins may decrease lead time to detect an attempt to brute force a credential, which may provide an indicator, such as source IP, that can be used in other event correlation."
@@ -333,6 +339,7 @@ resource "aws_cloudwatch_metric_alarm" "disable_or_delete_cmk" {
333
339
metric_name = join (" " , aws_cloudwatch_log_metric_filter. disable_or_delete_cmk . * . id )
334
340
namespace = var. alarm_namespace
335
341
period = " 300"
342
+ unit = var. unit
336
343
statistic = " Sum"
337
344
threshold = " 1"
338
345
alarm_description = " Monitoring failed console logins may decrease lead time to detect an attempt to brute force a credential, which may provide an indicator, such as source IP, that can be used in other event correlation."
@@ -370,6 +377,7 @@ resource "aws_cloudwatch_metric_alarm" "s3_bucket_policy_changes" {
370
377
metric_name = join (" " , aws_cloudwatch_log_metric_filter. s3_bucket_policy_changes . * . id )
371
378
namespace = var. alarm_namespace
372
379
period = " 300"
380
+ unit = var. unit
373
381
statistic = " Sum"
374
382
threshold = " 1"
375
383
alarm_description = " Monitoring changes to S3 bucket policies may reduce time to detect and correct permissive policies on sensitive S3 buckets."
@@ -407,6 +415,7 @@ resource "aws_cloudwatch_metric_alarm" "security_group_changes" {
407
415
metric_name = join (" " , aws_cloudwatch_log_metric_filter. security_group_changes . * . id )
408
416
namespace = var. alarm_namespace
409
417
period = " 300"
418
+ unit = var. unit
410
419
statistic = " Sum"
411
420
threshold = " 1"
412
421
alarm_description = " Monitoring changes to security group will help ensure that resources and services are not unintentionally exposed."
@@ -443,6 +452,7 @@ resource "aws_cloudwatch_metric_alarm" "nacl_changes" {
443
452
metric_name = join (" " , aws_cloudwatch_log_metric_filter. nacl_changes . * . id )
444
453
namespace = var. alarm_namespace
445
454
period = " 300"
455
+ unit = var. unit
446
456
statistic = " Sum"
447
457
threshold = " 1"
448
458
alarm_description = " Monitoring changes to NACLs will help ensure that AWS resources and services are not unintentionally exposed."
@@ -481,6 +491,7 @@ resource "aws_cloudwatch_metric_alarm" "network_gw_changes" {
481
491
metric_name = join (" " , aws_cloudwatch_log_metric_filter. network_gw_changes . * . id )
482
492
namespace = var. alarm_namespace
483
493
period = " 300"
494
+ unit = var. unit
484
495
statistic = " Sum"
485
496
threshold = " 1"
486
497
alarm_description = " Monitoring changes to network gateways will help ensure that all ingress/egress traffic traverses the VPC border via a controlled path."
@@ -518,6 +529,7 @@ resource "aws_cloudwatch_metric_alarm" "route_table_changes" {
518
529
metric_name = join (" " , aws_cloudwatch_log_metric_filter. route_table_changes . * . id )
519
530
namespace = var. alarm_namespace
520
531
period = " 300"
532
+ unit = var. unit
521
533
statistic = " Sum"
522
534
threshold = " 1"
523
535
alarm_description = " Monitoring changes to route tables will help ensure that all VPC traffic flows through an expected path."
@@ -555,6 +567,7 @@ resource "aws_cloudwatch_metric_alarm" "vpc_changes" {
555
567
metric_name = join (" " , aws_cloudwatch_log_metric_filter. vpc_changes . * . id )
556
568
namespace = var. alarm_namespace
557
569
period = " 300"
570
+ unit = var. unit
558
571
statistic = " Sum"
559
572
threshold = " 1"
560
573
alarm_description = " Monitoring changes to VPC will help ensure that all VPC traffic flows through an expected path."
0 commit comments