Skip to content

Latest commit

 

History

History
29 lines (27 loc) · 1.74 KB

terraform.md

File metadata and controls

29 lines (27 loc) · 1.74 KB

Terraform deployment

Check if you can use config for terraform state management

  1. Create bucket in Google Cloud
  2. Create .env.prod from .env.template and fill in the values
  3. Run make switch-env ENV=prod
  4. 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)
  5. Enable APIs
  6. You will need domain on cloudflare
  7. Run make init
  8. build cluster disk image here
  9. Fill in cloudflare API key with access to your domain
  10. Run make build-and-upload-all
  11. Run make apply-without-jobs
  12. 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)
  13. Run make apply
  14. Provisioning of the certificates can take some time, you can check the status in the Google Cloud Console