Use this template to setup aws infrastructure DB, ELB, Autoscaling group, Launch config, VPC and all network infrastructure. Automatically deploy wordpress site and setup zabbix server for monitoring.
Requirements: AWS-cli with configured AWS Access Key ID and AWS Secret Access Key -- use https://docs.aws.amazon.com/cli/latest/userguide/awscli-install-linux.html https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html
How to :
Create aws key-pair
aws ec2 create-key-pair --key-name terraformwp --query 'KeyMaterial' --output text > ~/.ssh/terraformwp.pem
Deploy infrastructure. This command will output dns name for haproxy and bastion
Open in browser zabbix-host-dns to end zabbix setup
ex. Outputs:
Zabbix-host = ec2-18-206-90-206.compute-1.amazonaws.com
Configure zabbix for autodiscovery
Open in browser elb-dns-name
To destroy infrastructure use