Skip to content

Provisioning on AWS a Wordpress project with RDS as database, memcache and autoscaling using Terraform and Ansible

Notifications You must be signed in to change notification settings

m4tob/learn-terraform-ansible-aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning: Terraform + Ansible + AWS

Project to learn about infra as code. In this project, a wordpress blog is provisioned on AWS with RDS as database using Terraform and Ansible. This project is a task of SRE Eleven Works course.

terraform ansible aws

Mandatory Resources:

Terraform

  • VPC

  • Subnet

  • Route Tables

  • Internet Gateway

  • Security Groups

  • RDS

  • EC2 Instance

Ansible

  • nginx
  • php-fpm
  • WordPress

Optional Resources:

  • Memcache
  • Load Balancer
  • Auto Scaling
  • Alta Disponibilidade com Multi AZ
  • CDN/WAF: Cloudflare + Serviço WAF

Commands Makefile

Command Description
init Init terraform
plan Show terraform changes
up Apply terraform changes
rebuild-instance Recreate EC2 instance with Ansible
down Destroy terraform resources

About

Provisioning on AWS a Wordpress project with RDS as database, memcache and autoscaling using Terraform and Ansible

Resources

Stars

Watchers

Forks