The Vercel Terraform Provider now allows you to customize and control the Vercel Firewall through Infrastructure as Code (IaC).
Key resources and their capabilities include:
Resource:
vercel_attack_challenge_modeToggle Attack Challenge Mode .
Resource:
vercel_firewall_configAttribute block:
rules—Define and adjust custom rules.Attribute block:
ip_rules—Manage a list of blocked IP addresses.
For example, to create a new rule that challenges requests where the user_agent contains curl:
resource "vercel_firewall_config" "example" { project_id = vercel_project.example.id rules { rule { name = "Challenge curl" description = "Challenge user agents containing 'curl'" condition_group = [{ conditions = [{ type = "user_agent" op = "sub" value = "curl" }] }] action = { action = "challenge" } } } }Get started with the Terraform provider for Vercel today. If you already have Terraform installed, upgrade by running:
terraform init -upgradeReference Architecture
Choose a stack and work through the decisions behind it, with curated documentation, guides, templates, and courses to help you build.
- Agent stack: Build and operate agents with models, tools, and durable workflows.
- Web applications: Choose rendering, data, authentication, and caching approaches.
- Backends: Choose a runtime, connect services, and run background work.
Build with prompts
Build an app, extend an agent, or improve your project with ready-to-use prompts for your coding agent.