Add vibe code Cloudflare data ingestor to Source Cooperative

This commit is contained in:
Diego Ripley
2026-03-08 13:12:47 -04:00
parent 18c37c2a41
commit b2dfd76165
7 changed files with 1379 additions and 0 deletions
@@ -0,0 +1,23 @@
name = "cf-data-ingestor"
main = "src/index.js"
compatibility_date = "2026-03-08"
routes = [
{ pattern = "cf-data-ingestor.labs.dataforcanada.org", custom_domain = true }
]
# ------------------------------------------------------------------
# Secrets (set via `wrangler secret put <NAME>`):
# AUTH_TOKEN
# AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY
# ------------------------------------------------------------------
# Non-secret environment variables
[vars]
S3_BUCKET = "us-west-2.opendata.source.coop"
S3_REGION = "us-west-2"
S3_ENDPOINT = ""
[placement]
# TODO: parametize so user can specifically set where they want the worker to run
mode = "smart"