This article is based on the README.md, docs, examples, and CHANGELOG of laravel/terraform-provider-laravel. It reflects v1.5.1 (released November 25, 2026). The provider is currently in beta and may change between releases.
What is the Terraform provider?
laravel/terraform-provider-laravel is a Terraform provider for managing Laravel Cloud infrastructure. You can describe configurations that you previously set up by hand in the dashboard or with the Laravel Cloud CLI as code, then review the changes withterraform plan and apply them with terraform apply.
With this provider, you can keep application and environment definitions together with databases, caches, storage buckets, WebSocket servers, domains, and scheduled commands in a single configuration.
Requirements
- Terraform 1.0 or later
- Go 1.25 or later (only needed to build the provider from source)
Installation
Add the provider torequired_providers and run terraform init.
Authentication
The API token is resolved in this order:- The
tokenargument in the provider block - The
LARAVEL_CLOUD_API_TOKENenvironment variable - The token saved by
cloud auth(~/.config/cloud/config.json)
terraform plan works without exporting anything as long as you are logged in with the Laravel Cloud CLI. If you are logged in to more than one organization, the provider asks you to set the token because it cannot tell which organization you want to manage.
Main resources
Resources fall into these groups.
Data sources are available for reading existing values. For example,
laravel_cloud_regions, laravel_cloud_instance_sizes, and laravel_cloud_database_presets let you look up valid values before you write resources.
Minimal example
This minimal configuration defines an application and a production environment. Changephp_version and node_version to match your environment.
php_version is sent as 8.4:1, and the API reports the major version as php_major_version. You can check it in an output value.
Handling API limits
The Laravel Cloud API applies rate limits per organization. The provider adjusts request spacing with these two values, so a large apply is less likely to fail.max_requests_per_minute: the upper limit on API requests the provider sends. The default is100. Laravel Cloud allows 120 requests per minute per organization, shared across tokens and runs.max_create_requests_per_minute: the upper limit on create requests for applications, environments, instances, databases, buckets, caches, and similar resources. The default is25.
0 turns off the provider-side limit.
Development and testing
The repository provides these tasks.Notes
- v1.0.0 was released on September 18, 2026, and the current version is v1.5.1. Releases are frequent, and resources and data sources have been added within the v1.x series.
- You can check the official change history in CHANGELOG.md. Because the provider is in beta, always review the
terraform planoutput before applying to production. - When you move existing Laravel Cloud resources from manual setup to Terraform, you can bring them in with
terraform import. This makes it easier to check the differences.