Boost your TDengine with our Terraform & Ansible toolkit. This repo arms developers with powerful scripts to:
- Provision AWS Infrastructure: Deploy your architecture effortlessly.
- Enable S3 Storage: Securely store data with AWS S3 integration.
- Fine-Tune Clusters: Customize TDengine settings for optimal performance.
- Manage Backups: Automate your backup strategy with precision.
- AWS Account
- Terraform installed
- Ansible installed
Navigate to terraform directory:
cd terraform
Initialize Terraform:
terraform init
Apply the Terraform plan to provision the infrastructure:
terraform apply
After applying, Terraform create a hosts.ini
file with the public IPs as follows:
[tdengine_cluster]
node1 ansible_host=<Public_IP_of_Node1> ansible_user=ubuntu
node2 ansible_host=<Public_IP_of_Node2> ansible_user=ubuntu
...
Navigate to ansible directory:
cd ../ansible
Run the installation playbook:
ansible-playbook -i hosts.ini install_tdengine.yaml
Log into any of the TDengine nodes and create the database:
taos -h <node1_IP>
create database mydb;
Run the backup playbook to configure the backup policy:
ansible-playbook -i hosts.ini backup_tdengine.yaml
Modify setup_cron.sh
based on the requirements then run:
chmod +x setup_cron.sh
./setup_cron.sh
Powered by terraform-ai.