Skip to main content

Deploy with an agent

Copy agent prompt

Before you start

Connect your AWS account using the Spring Winter quickstart. You need postgreSQL and durable file storage. Check the upstream deployment instructions and pin a release before you deploy. Source repository.

Create and connect the database

  1. 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.
  2. 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.
  3. Set MM_SQLSETTINGS_DRIVERNAME=postgres and MM_SQLSETTINGS_DATASOURCE to the writer connection. Set up the file storage backend before serving users. Put secret values in runtime configuration or the migration process’s secret store.
  4. Start Mattermost and wait for its database migrations, then complete initial setup.

Configure the deployment

  1. 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.
  2. Use the Team Edition image for the selected release on port 8065.
  3. Set MM_SERVICESETTINGS_SITEURL and PostgreSQL settings such as MM_SQLSETTINGS_DATASOURCE.
  4. Configure a supported S3 file store or a durable filesystem.
  5. Review plugin and other writable paths before choosing task compute.
When you run the HTTP app on Spring Winter, set a health path that returns HTTP 200 without signing in. Use Runtime variables for runtime configuration. Task storage is temporary. Verify that every file you need after replacement goes to durable storage.

Verify the deployment

Check the deployment in History if you created Spring Winter compute. Wait for the workflow to succeed, then test the application over HTTPS. Sign in, create a channel and send a message with an attachment. Verify live delivery and file access after replacement.