This Terraform configuration sets up Cloudflare Workers for a given domain. It includes configurations for providers, resources, and data sources.
Files Overview
backend.tf: Contains provider and backend configurations.
cloudflare.tf: Defines Cloudflare Worker Script, routes, and the local file dependencies.
data.tf: Provides data sources used in the configuration.
variables.tf: Lists the variables required for the configuration.
Note:
This code is setup with a null resource that is able to run code directly on Terraform cloud without needing a CI job for npm. (However that can be toggled off and be run in a standard pipeline)