Skip to content

A simple automated Wordpress blog with terraform and ansible.

License

Notifications You must be signed in to change notification settings

guilhermelinhares/aws_terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aws Terraform + Ansible

A simple automated Wordpress blog with terraform and ansible.

Description

The proposite project is create a multiple services in aws with terraform for a simple blog in Wordpress, with as services:

Terraform:

  • VPC
  • Security Groups
  • Load Balancer
  • Auto-Scaling
  • Lanch Template
  • RDS + Generate a random database password
  • EC2 with Mult-AZ
  • Elasticache with a Memcached
  • EFS
  • S3(Static website) + Cloudfront

Ansible:

  • Wordpress
  • Php
  • Nginx
  • Openssl Self Signed (Just Labs)
  • Prometheus + Template
  • Grafana

Getting Started

Dependencies

  • Terraform.
  • AWS CLI
  • Account Valid Aws

Installing

  • Link install terraform pack
  • Link install aws cli
  • Link Aws valid account

Configure AWS IAM Account

With account created and validate, is recommended create a new user in IAM Service, with any name you wanted and any rules you need, after create a new user is generate a acess key id, acess key secret and password, save in a security place.

Configure AWS CLI

Before begin initialize a terraform provisioner you need configure in your sistem operation terminal service with this command.

aws configure

Executing Terraform

  • Initialize terraform service
terraform init
  • Generate a plan of terraform
terraform plan
  • Apply all services in your aws account
terraform apply

About

A simple automated Wordpress blog with terraform and ansible.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published