Check if you can use config for terraform state management
- Create bucket in Google Cloud
- Create
.env.prod
from.env.template
and fill in the values - Run
make switch-env ENV=prod
- Create DB and apply Migrations (./packages/shared) and run
make migrate
(there bug in atlas, it will fail, you will need to create atlas_schema_revisions.atlas_schema_revisions, the table definition will be in public.atlas_schema_revisions) - Enable APIs
- You will need domain on cloudflare
- Run
make init
- build cluster disk image here
- Fill in cloudflare API key with access to your domain
- Run
make build-and-upload-all
- Run
make apply-without-jobs
- Fill in following secrets:
- postgres (required)
- If you don't want to use, keep as it is:
- posthog (if you don't want to use posthog)
- grafana (if you want traces / logging)
- Run
make apply
- Provisioning of the certificates can take some time, you can check the status in the Google Cloud Console