Skip to content

Commit

Permalink
Merge pull request #42 from dduportal/feat/add-logpush-westeurope
Browse files Browse the repository at this point in the history
feat(updates.jenkins.io) add a 'http_requests to datadog' logpush resource for westeurop
  • Loading branch information
dduportal authored Oct 31, 2024
2 parents c991721 + 7f84351 commit 465557f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
5 changes: 5 additions & 0 deletions outpufs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
output "zones_name_servers" {
value = {
for k, zone in cloudflare_zone.updates_jenkins_io : k => zone.name_servers
}
}
16 changes: 1 addition & 15 deletions updates.jenkins.io.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 465557f

Please sign in to comment.