How vercel/terraform-provider-vercel works
This repository is a Terraform provider for managing Vercel projects and related platform resources. Terraform invokes the provider, whose resource and data-source implementations translate plans, state reads, and imports into operations on the shared Vercel API client. The product spans project configuration, deployments, networking and routing, security and observability, and team integrations. The excerpts show several resource-to-client calls; other capability nodes are retained from the source tree, but their internal relationships are not asserted where their implementations were not sampled.
Main entry points: client.go Vercel API client · provider.go Provider configuration · resource_project_route.go Project route resource · main.go Provider entry
Components 20
Provider runtime
- Provider entry
main.go - Provider configuration
vercel/provider.go - Vercel API client
client/client.go
Projects and delivery
- Project resource
vercel/resource_project.go - Project data source
vercel/data_source_project.go - Deployment resource
vercel/resource_deployment.go - Environment variables
vercel/resource_project_environment_variables.go
Networking and routing
- Project route resource
vercel/resource_project_route.go - Project routes data source
vercel/data_source_project_routes.go - Route models
vercel/project_routes_types.go - DNS records
vercel/resource_dns_record.go
Platform controls
- Alert rules
vercel/resource_alert_rule.go - Alert webhook notification
vercel/resource_alert_rule_webhook_notification.go - VCR repositories
vercel/resource_vcr_repository.go - VCR permissions
vercel/resource_vcr_repository_permission.go - Additional Vercel resources
vercel
Identity and integrations
- OAuth applications
vercel/resource_oauth_app.go - Webhooks
vercel/resource_webhook.go
Other components
- Terraform CLI
- Vercel API
Connections 19
- Terraform CLI → Provider entry: starts provider
README.md - Provider entry → Provider configuration: serves provider
main.go - Provider configuration → Project resource: registers resources
- Provider configuration → Project data source: registers data sources
- Project resource → Vercel API client: calls API client
vercel/resource_project.go - Project data source → Vercel API client: reads via client
- Deployment resource → Vercel API client: calls API client
vercel/resource_deployment.go - Environment variables → Vercel API client: calls API client
vercel/resource_project_environment_variables.go - Project routes data source → Vercel API client: reads routes
vercel/data_source_project_routes.go - Project route resource → Vercel API client: calls API client
- Project route resource → Route models: uses route models
- DNS records → Vercel API client: calls API client
vercel/resource_dns_record.go - Alert rules → Vercel API client: calls API client
vercel/resource_alert_rule.go - Alert webhook notification → Vercel API client: links notifications
vercel/resource_alert_rule_webhook_notification.go - VCR repositories → Vercel API client: calls API client
vercel/resource_vcr_repository.go - VCR permissions → Vercel API client: calls API client
vercel/resource_vcr_repository_permission.go - OAuth applications → Vercel API client: calls API client
- Webhooks → Vercel API client: calls API client
vercel/resource_webhook.go - Vercel API client → Vercel API: sends API requests