Create instance
laravel_cloud_create_instanceCreate a new service or managed queue instance for a Laravel Cloud environment, with configurable size, scaling, and background processes.
Instructions
Create a new instance (service or managed queue) for an environment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Instance name. | |
| size | Yes | Instance size. Use laravel_cloud_list_instance_sizes to discover values. | |
| type | Yes | Instance type. | |
| environment | Yes | Environment ID. | |
| max_replicas | No | Maximum replicas (custom scaling). | |
| min_replicas | Yes | Minimum replicas (custom scaling). | |
| scaling_type | Yes | Scaling strategy. | |
| sleep_with_app | No | Scale worker replicas to zero alongside the app. | |
| uses_scheduler | No | Run the Laravel scheduler on this instance. | |
| polling_interval | Yes | Managed queue polling interval in seconds. | |
| shutdown_timeout | Yes | Shutdown timeout in seconds. | |
| visibility_timeout | Yes | Managed queue visibility timeout in seconds. | |
| background_processes | No | Background processes to run on this instance. | |
| scaling_cpu_threshold_percentage | No | CPU threshold for auto-scaling. | |
| scaling_memory_threshold_percentage | No | Memory threshold for auto-scaling. |