Add MariaDB CRUD Terraform stand

This commit is contained in:
Repinoid
2026-10-02 12:21:23 +03:00
parent cb3b37eb47
commit 040b9815d5
4 changed files with 224 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
# MariaDB CRUD test stand
This Terraform root manages one MariaDB cluster, the `maria` database, three CRUD apps, and an HTTP readiness check.
The Lucee, Flask, and Node.js apps share the `crud_items` table. Their source repositories are the corresponding repositories under `terraform/` on Gitea. The HTTP service uses the image `naeel/mariadb-check:0.1`; build and publish that image before applying this configuration.
## Configuration
`terraform.tfvars` contains the Nubes API token and the resource realm. It is ignored by Git. The example file contains no credentials.
## Commands
```sh
terraform init
terraform validate
terraform plan
```
Review the plan before applying it. The database is a managed resource and may be deleted by Terraform destroy.