Deploy with an agent
Copy agent prompt
Before you start
Connect your AWS account using the Spring Winter quickstart. You need postgreSQL for application state and an image that includes required plugins. 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 for this deployment. 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
GF_DATABASE_TYPE=postgresand theGF_DATABASE_HOST,GF_DATABASE_NAME,GF_DATABASE_USER,GF_DATABASE_PASSWORDand TLS settings. Keep analytics data source connections separate. Put secret values in runtime configuration or the migration process’s secret store. - Start Grafana and wait for its startup migrations and
/api/healthbefore configuring data sources.
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 grafana/grafana on port 3000 with /api/health.
- Configure GF_DATABASE_TYPE=postgres, the GF_DATABASE connection settings, and GF_SERVER_ROOT_URL.
- Bake plugins and provisioned configuration into the image if they would otherwise be lost with the task.