-
Notifications
You must be signed in to change notification settings - Fork 5
CCM-14044 Setting prod defaults #439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
b575efc
CCM-14044 Setting prod defaults
aidenvaines-cgi d9ff0a9
CCM-14044 Setting prod defaults
aidenvaines-cgi 281824f
CCM-14044 Fixing mod source
aidenvaines-cgi 1c64bb8
CCM-14044 Fixing Var Names
aidenvaines-cgi 9a4f5db
CCM-14044 Fixing mod source
aidenvaines-cgi 40c7e46
CCM-14044 Fixing mod source
aidenvaines-cgi 7125454
CCM-14044 Unused output
aidenvaines-cgi 06aa14f
Merge branch 'main' into CCM-14044_AddingAnomalyAlarm
aidenvaines-cgi 7222602
CCM-14044 Fixing mod refs
aidenvaines-cgi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
infrastructure/terraform/components/api/module_domain_truststore.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
infrastructure/terraform/components/api/module_sqs_amendments.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
infrastructure/terraform/components/api/module_sqs_letter_status_updates.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
infrastructure/terraform/components/api/module_sqs_letter_updates.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
infrastructure/terraform/components/api/module_sqs_supplier_allocator.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
infrastructure/terraform/modules/eventsub/cloudwatch_metric_alarm_subscriber_anomaly.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| resource "aws_cloudwatch_metric_alarm" "subscriber_anomaly" { | ||
| count = var.enable_event_anomaly_detection ? 1 : 0 | ||
|
|
||
| alarm_name = "${local.csi}-subscriber-anomaly" | ||
| alarm_description = "ANOMALY: Detects anomalous patterns in messages published to the SNS fanout topic" | ||
| comparison_operator = "LessThanLowerOrGreaterThanUpperThreshold" | ||
| evaluation_periods = var.event_anomaly_evaluation_periods | ||
| threshold_metric_id = "ad1" | ||
| treat_missing_data = "notBreaching" | ||
|
|
||
| metric_query { | ||
| id = "m1" | ||
| return_data = true | ||
|
|
||
| metric { | ||
| metric_name = "NumberOfNotificationsDelivered" | ||
| namespace = "AWS/SNS" | ||
| period = var.event_anomaly_period | ||
| stat = "Sum" | ||
|
|
||
| dimensions = { | ||
| TopicName = aws_sns_topic.main.name | ||
| } | ||
| } | ||
| } | ||
|
|
||
| metric_query { | ||
| id = "ad1" | ||
| expression = "ANOMALY_DETECTION_BAND(m1, ${var.event_anomaly_band_width})" | ||
| label = "NumberOfNotificationsDelivered (expected)" | ||
| return_data = true | ||
| } | ||
|
|
||
| tags = merge( | ||
| var.default_tags, | ||
| { | ||
| Name = "${local.csi}-subscriber-anomaly" | ||
| } | ||
| ) | ||
| } | ||
2 changes: 1 addition & 1 deletion
2
infrastructure/terraform/modules/eventsub/module_s3bucket_event_cache.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.