Hasura is an open-source engine that provides instant GraphQL APIs and real-time event handling for your applications. This tutorial will provide detailed steps on how to deploy your Hasura GraphQL Engine on Flightcontrol.
At the end of this tutorial we will have a Hasura GraphQL Engine running on AWS Elastic Container Service (ECS) Fargate and an AWS Relational Database Service (RDS) database. This web application will be running on resources within your AWS account, and will have a public accessible URL.
Before you get started, ensure you have completed the following:
- Get started with Hasura (opens in a new tab)
- Create a Flightcontrol account (opens in a new tab)
- Create an AWS account (opens in a new tab)
Flightcontrol provides two options to deploy your web applications:
- Connect Hasura's general repository (opens in a new tab) on Flightcontrol using GitHub
- Select a GUI config type
- Select your environment
- Add a service for Web fargate and a Postgres Database
- Configure the following settings in Web fargate
- Build System:
- Build Type: Pull from Image Registry
- Image Repository: Create an Image Registry on Flightcontrol (opens in a new tab) and select it here
- Image Tag: Set the Image Tag to your preferred version or latest
- Port: 8080
- Health Check Path: /healthz
- Set the
Env Variable Name for Connection Stringin Database settings to be
- Select an AWS region
truein the Enviroment Variable Section. This is done to enable the GraphQL console (optional)
- Click "Create Project" and complete any required steps (like linking your AWS account)
In this tutorial, you deployed a Hasura project using the Flightcontrol Dashboard or flightcontrol.json file.