Hasura Example
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.
Prerequisites
Before you get started, ensure you have completed the following:
Configuration Options
Flightcontrol provides two options to deploy your web applications:
- Connect Hasura’s general repository 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 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 String
in Database settings to beHASURA_GRAPHQL_DATABASE_URL
- Select an AWS region
- Set
HASURA_GRAPHQL_ENABLE_CONSOLE
totrue
in 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)
Additional resources
Conclusion
In this tutorial, you deployed a Hasura project using the Flightcontrol Dashboard or flightcontrol.json file.