MariaDB automatic installation in AWS(EC2) with docker and slave replica (on the same EC2 instance) and with Elastic IP Address using Terraform. This example not for production usage.
- Terraform installed
- Created ssh key for access to EC2 Instance
Copy git repository, change SECRET KEY, ACCESS KEY and PUBLIC KEY for yours and apply tf script.
After installing /home/init.sh
script will be started automatically inside the instance.