-
Notifications
You must be signed in to change notification settings - Fork 9
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
Setup Azure Alert for Azure is down #1464
Conversation
Co-Authored-By: Samuel Aquino <[email protected]>
Co-Authored-By: Samuel Aquino <[email protected]>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Co-Authored-By: halprin <[email protected]>
Co-authored-by: halprin <[email protected]>
operations/template/variables.tf
Outdated
variable "service_health_locations" { | ||
type = string | ||
default = "global" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this? Do we actually customize this to anything? I feel we could just hardcode "global"
in the azurerm_monitor_activity_log_alert
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed variable for now as its only used in this file. If more instances pop up, will refactor later.
operations/template/alert.tf
Outdated
resource "azurerm_monitor_activity_log_alert" "azure_service_health_alert" { | ||
count = local.non_pr_environment ? 1 : 0 | ||
name = "cdcti-${var.environment}-azure-status-alert" | ||
location = "global" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be data.azurerm_resource_group.group.location
? For every other resource that asks for a resource_group_name
and location
, we've put data.azurerm_resource_group.group.location
for the location
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, and the docs appear to reflect this as well:
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/monitor_activity_log_alert
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setup Azure Alert for Azure is down
Added terraform for creating Azure Alert for when Azure is down.
Issue
#1397
Checklist
Note: You may remove items that are not applicable