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 terraformInitialize Terraform:
terraform initApply the Terraform plan to provision the infrastructure:
terraform applyAfter 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 ../ansibleRun the installation playbook:
ansible-playbook -i hosts.ini install_tdengine.yamlLog 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.yamlModify setup_cron.sh based on the requirements then run:
chmod +x setup_cron.sh
./setup_cron.shPowered by terraform-ai.