https://github.com/soerenschneider/tf-mariadb
https://github.com/soerenschneider/tf-mariadb
automation iac infrastructure-as-code mariadb mysql opentofu secrets-management vault
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/soerenschneider/tf-mariadb
- Owner: soerenschneider
- Created: 2024-07-02T20:06:06.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-18T22:00:28.000Z (over 1 year ago)
- Last Synced: 2025-06-10T00:05:21.092Z (about 1 year ago)
- Topics: automation, iac, infrastructure-as-code, mariadb, mysql, opentofu, secrets-management, vault
- Language: HCL
- Homepage:
- Size: 199 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tf-mariadb




This repository implements Infrastructure as Code (IaC) using [OpenTofu](https://opentofu.org/) to configure MySQL/MariaDB databases and write user credentials to Hashicorp Vault.
## Table of Contents
- [Overview](#overview)
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
## Getting Started
Follow these instructions to set up the repository and start managing your MySQL/MariaDB and Vault resources.
### Prerequisites
- [OpenTofu](https://opentofu.org/)
- Terragrunt
- Docker-compose
### Running the code
1. **Clone the repository:**
```bash
git clone https://github.com/soerenschneider/tf-mariadb.git
cd tf-mariadb
```
2. **Provisioning resources:**
```bash
cd envs/dev
bash run.sh
```
### Tests
This repository utilizes Terratest for automated testing of OpenTofu modules and configurations.
1. **Running the tests:**
```bash
$ make tests
```