Breaks down ticketing and webhook IPs by account region
This commit is contained in:
parent
1d6e225f98
commit
06e7ede6c7
|
@ -47,10 +47,17 @@ locals {
|
|||
]
|
||||
}
|
||||
|
||||
ticketing_and_webhooks = [
|
||||
ticketing_and_webhooks_us = [
|
||||
"50.31.164.0/24",
|
||||
"162.247.240.0/22",
|
||||
]
|
||||
|
||||
ticketing_and_webhooks_eu = [
|
||||
"158.177.65.64/29",
|
||||
"159.122.103.184/29",
|
||||
"161.156.125.32/28",
|
||||
]
|
||||
|
||||
# Documented at https://docs.newrelic.com/docs/synthetics/new-relic-synthetics/administration/synthetics-public-minion-ips#locations-labels
|
||||
# https://s3.amazonaws.com/nr-synthetics-assets/nat-ip-dnsname/production/ip.json
|
||||
synthetics_us = [
|
||||
|
|
30
outputs.tf
30
outputs.tf
|
@ -104,9 +104,33 @@ output "synthetics_cidrs_eu" {
|
|||
}
|
||||
|
||||
output "ticketing_cidrs" {
|
||||
value = ["${local.ticketing_and_webhooks}"]
|
||||
description = "Third-party ticketing integrations will be sent from these CIDRs"
|
||||
value = ["${concat(local.ticketing_and_webhooks_us, local.ticketing_and_webhooks_eu)}"]
|
||||
}
|
||||
|
||||
output "webhook_cidrs" {
|
||||
value = ["${local.ticketing_and_webhooks}"]
|
||||
output "ticketing_cidrs_us" {
|
||||
description = "Same as ticketing_cidrs, but exclusively for US accounts"
|
||||
value = ["${local.ticketing_and_webhooks_us}"]
|
||||
}
|
||||
|
||||
output "ticketing_cidrs_eu" {
|
||||
description = "Same as ticketing_cidrs, but exclusively for EU accounts"
|
||||
value = ["${local.ticketing_and_webhooks_eu}"]
|
||||
}
|
||||
|
||||
# The webhook_* outputs are same as ticketing_
|
||||
|
||||
output "webhook_cidrs" {
|
||||
description = "New Relic-generated webhooks for alert policies will be sent from these CIDRs"
|
||||
value = ["${concat(local.ticketing_and_webhooks_us, local.ticketing_and_webhooks_eu)}"]
|
||||
}
|
||||
|
||||
output "webhook_cidrs_us" {
|
||||
description = "Same as webhook_cidrs, but exclusively for US accounts"
|
||||
value = ["${local.ticketing_and_webhooks_us}"]
|
||||
}
|
||||
|
||||
output "webhook_cidrs_eu" {
|
||||
description = "Same as webhook_cidrs, but exclusively for EU accounts"
|
||||
value = ["${local.ticketing_and_webhooks_eu}"]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue