Introduction
Storage providers allow Laravel Forge to store your database backups on external object storage services. Once configured, a storage provider can be reused across multiple servers and backup configurations within your organization. Storage providers are configured and managed within the organization’s settings.Supported providers
Laravel Forge supports the following storage providers:- Amazon S3
- DigitalOcean Spaces
- Scaleway
- OVH Cloud
- Custom (S3 Compatible)
Not all providers are 100% compatible with Amazon S3’s API. Some providers, such as OVH and Scaleway, require a custom configuration to work correctly, typically through the use of
awscli-plugin-endpoint.Managing storage providers
Adding a storage provider
To add a storage provider, navigate to the organization’s settings. Then, on the “Storage providers” page, click “Add provider”. Select the provider you wish to configure and provide the required credentials. For Amazon S3, DigitalOcean Spaces, Scaleway, and OVH Cloud, you need to provide:- A name for the storage provider
- The region your backups should be stored in (
eu-west-2,nyc3, etc.) - The access and secret keys that should be used to connect to the storage service
- The service endpoint or URL
- The access and secret keys that should be used to connect to the storage service
Using EC2 assumed roles
When using Amazon S3 in combination with an EC2 server, you can choose to use the identity of the EC2 server to stream the backup to S3 without providing credentials. To use this option, enable the “Use EC2 Assumed Role” toggle when creating the storage provider.Editing storage providers
To edit a storage provider, navigate to the organization’s settings. Then, on the “Storage providers” page, click the dropdown menu on the provider and click “Edit”. You can update any of the configuration options, including credentials.Deleting storage providers
To delete a storage provider, navigate to the organization’s settings. Then, on the “Storage providers” page, click the dropdown menu on the provider and click “Delete”.Team permissions
The ability to manage storage providers is controlled by thestorage:manage permission.