Basic Yarn-defined Vite application from a vanilla template.
Basic Flask-defined WSGI application hosted via Gevent.
Basic Sqlite3 database file intended to be mounted for access by the service.
Collection of Terraform resources for deploying the application stack to a target cluster.
The values defined in terraform.tfvars
can be used to control where the application will be deployed by providing specific details about the target cluster; specific details documenting the usage of each variable can be found in the corresponding variables.tf
specification.
To test this approach, two different clusters were used:
-
A local cluster using minikube on a Windows machine
-
A cloud provider cluster using DigitalOcean (configured separately)
Deployment takes place from the ./delivery
folder files, captured as a module from the top level, using the usual Terraform three-step:
$ terraform init
$ terraform plan -out=tf.plan
$ terraform apply tf.plan