Automatically create, launch and provision new WordPress ec2 instance with terraform & ansible
https://devops-treff.de/2020/03/27/install-wordpress-with-terraform-on-aws/
- Terraform will be initiate a new ec2 instance on aws
- Ansible will be run his playbook to copy and install the wordpress and DB stuff on the new ec2 vm
- Lets rock! ;-)
What do you need to prepare before:
- Localy installed Ansible
- AWS CLI
- Terraform
- Start "terraform init" to store the aws-credentials
- Checkout this Github Project
- terraform plan -out challenge01
- terraform apply „challenge01“
After the installation from terraform you can login with:
ssh -i ~/.ssh/your-key ubuntu@ip
in compare of your configured key pair in aws!