Deploy with an agent
Copy agent prompt
Before you start
Connect your AWS account using the Spring Winter quickstart. You need postgreSQL and durable storage for uploaded files if enabled. Check the upstream deployment instructions and pin a release before you deploy. Source repository.Create and connect the database
- Create a private SQL database with PostgreSQL. If you already have a database for this deployment, verify that the engine and version match the pinned app release. Wait for the database to be ready.
- Open Connect on the database. Use the writer endpoint, port, database name and application credentials. Create the application database and role if needed. Confirm that the application and migration process can reach the private writer.
- Set
DATABASE_URLto the writer. Check the pinned release for required PostgreSQL extensions, a Redis-compatible cache, and any extra database or service such as the authorization store. Give each migration and runtime process access to its own configured database. Put secret values in runtime configuration or the migration process’s secret store. - Run Formbricks migrations first. If the release includes Hub, run Hub migrations next, then start the required services and workers in the release’s documented dependency order.
Configure the deployment
- Select a Spring Winter project in the AWS Region you want to use. Use a web server for the HTTP app and configure dependencies before you start it.
- Use the Formbricks image and runtime settings from the pinned self-hosted release.
- Configure DATABASE_URL, WEBAPP_URL, NEXTAUTH_URL and the authentication and encryption secrets required in its deployment template.
- Configure HTTPS callbacks, email if required and the supported storage adapter for uploads.
- Check whether your release includes Hub and Cube in its baseline deployment.
- If it does, provide reachable services for both and use the release’s documented connection settings.