The purpose of this project is to run self-hosted Retool as cheap as possible in the cloud. This is not intended for production use, however, this code could serve as a base for a hardened deployment.
Deployment Steps
Create terraform.tfvars file with required variables.
Run terraform apply.
terracurl_request.exec will execute retool-jobs-runner Cloud Run job to apply database migrations.
The retool-jobs-runner job will show as failed due to the fact Cloud Run jobs are not designed to be long-running. The main purpose of this job is to run database migrations. After migrations are applied, the container will continue to run. You can verifiy the migrations have successfully run by searching the logs for Running database migrations... or Database migrations are up to date..