From 7f843517d655a2057eb675cbb84eda8e93a00b52 Mon Sep 17 00:00:00 2001 From: Damien Duportal Date: Thu, 31 Oct 2024 15:22:20 +0100 Subject: [PATCH] feat(updates.jenkins.io) add a 'http_requests to datadog' logpush resource for westeurop Signed-off-by: Damien Duportal --- outpufs.tf | 5 +++++ updates.jenkins.io.tf | 16 +--------------- 2 files changed, 6 insertions(+), 15 deletions(-) create mode 100644 outpufs.tf diff --git a/outpufs.tf b/outpufs.tf new file mode 100644 index 0000000..f34ba98 --- /dev/null +++ b/outpufs.tf @@ -0,0 +1,5 @@ +output "zones_name_servers" { + value = { + for k, zone in cloudflare_zone.updates_jenkins_io : k => zone.name_servers + } +} diff --git a/updates.jenkins.io.tf b/updates.jenkins.io.tf index 11f1c69..cad8cba 100644 --- a/updates.jenkins.io.tf +++ b/updates.jenkins.io.tf @@ -13,16 +13,6 @@ resource "cloudflare_r2_bucket" "updates_jenkins_io" { location = each.value } -output "zones_name_servers" { - value = { - for k, zone in cloudflare_zone.updates_jenkins_io : k => zone.name_servers - } -} - -import { - id = "account/${local.account_id.jenkins-infra-team}/772143" - to = cloudflare_logpush_job.account_audit_logs -} resource "cloudflare_logpush_job" "account_audit_logs" { enabled = true account_id = local.account_id.jenkins-infra-team @@ -54,12 +44,8 @@ resource "cloudflare_logpush_job" "account_audit_logs" { } } -import { - id = "zone/${cloudflare_zone.updates_jenkins_io["eastamerica"].id}/771340" - to = cloudflare_logpush_job.zones_access_logs["eastamerica"] -} resource "cloudflare_logpush_job" "zones_access_logs" { - for_each = toset(["eastamerica"]) + for_each = local.regions enabled = true zone_id = cloudflare_zone.updates_jenkins_io[each.key].id