Deploy with an agent
Copy agent prompt
Before you start
Connect your AWS account using the Spring Winter quickstart. You need postgreSQL and a compatible Redis service. 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.
- Configure the pinned release’s
AP_POSTGRES_*runtime variables with the writer connection. Provision a compatible Redis service and configure theAP_REDIS_*settings before startup. Put secret values in runtime configuration or the migration process’s secret store. - Follow the release’s migration sequence and start the app. In split mode, start workers after the app’s database setup succeeds.
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 upstream image and its PostgreSQL and Redis production configuration.
- Translate the release’s AP_* environment into runtime settings, including AP_FRONTEND_URL, AP_ENCRYPTION_KEY and AP_JWT_SECRET.
- Choose the documented combined or split worker mode.
- For split workers, check the Spring Winter worker source contract and the release’s worker settings.