-
Notifications
You must be signed in to change notification settings - Fork 4
VED-887: Slack Api Error Alerting #1066
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 9 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
93b19a6
setting up account level config for slack and sns topic alerting
Akol125 23fcef4
Merge branch 'master' into VED-887-Slack-alerting-API-errors
Akol125 749ac3b
setup metrics and alarm for fhir api and change error notifications env
Akol125 30709fd
Merge branch 'VED-887-Slack-alerting-API-errors' of https://github.co…
Akol125 9cd3c8d
set up metric filter pattern and fix tf apply
Akol125 001fbd4
shared kms key and pass var enabled notifications to module
Akol125 354a73b
pass variables to imms event lambdas
Akol125 87967e0
revert to master hcl
Akol125 9e5befd
Merge branch 'master' into VED-887-Slack-alerting-API-errors
Akol125 3e4ffcd
tidy up few changes
Akol125 5ff3957
Merge branch 'VED-887-Slack-alerting-API-errors' of https://github.co…
Akol125 9cfa4d4
Merge branch 'master' into VED-887-Slack-alerting-API-errors
Akol125 96bdcf7
change alarm description
Akol125 c72342e
Merge branch 'VED-887-Slack-alerting-API-errors' of https://github.co…
Akol125 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
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,24 @@ | ||
| resource "aws_chatbot_slack_channel_configuration" "fhir_api_errors" { | ||
| configuration_name = "${var.environment}-fhir-api-errors-slack-channel-config" | ||
| iam_role_arn = aws_iam_role.fhir_api_errors_chatbot.arn | ||
| slack_channel_id = var.environment == "prod" ? "C0A3LPKNKEE" : "C0A4F3G8J0G" | ||
| slack_team_id = "TJ00QR03U" | ||
| sns_topic_arns = [aws_sns_topic.fhir_api_errors.arn] | ||
| } | ||
|
|
||
| resource "aws_iam_role" "fhir_api_errors_chatbot" { | ||
| name = "${var.environment}-fhir-api-errors-chatbot-channel-role" | ||
| assume_role_policy = jsonencode({ | ||
| Version = "2012-10-17" | ||
| Statement = [ | ||
| { | ||
| Action = "sts:AssumeRole" | ||
| Effect = "Allow" | ||
| Sid = "AssumeChatbotRole" | ||
| Principal = { | ||
| Service = "chatbot.amazonaws.com" | ||
| } | ||
| }, | ||
| ] | ||
| }) | ||
| } |
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,22 @@ | ||
| resource "aws_sns_topic" "fhir_api_errors" { | ||
| name = "${var.environment}-fhir-api-errors" | ||
| kms_master_key_id = aws_kms_key.error_alerts_sns_encryption_key.arn | ||
| } | ||
|
|
||
| resource "aws_sns_topic_policy" "fhir_api_errors_topic_policy" { | ||
| arn = aws_sns_topic.fhir_api_errors.arn | ||
| policy = jsonencode({ | ||
| Version = "2012-10-17", | ||
| Statement = [ | ||
| { | ||
| Sid = "AllowCloudWatchToPublish", | ||
| Effect = "Allow", | ||
| Principal = { | ||
| Service = "cloudwatch.amazonaws.com" | ||
| }, | ||
| Action = "SNS:Publish", | ||
| Resource = aws_sns_topic.fhir_api_errors.arn | ||
| } | ||
| ] | ||
| }) | ||
| } |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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.