GithubHelp home page GithubHelp logo

sydfx / terraform-wordpress Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bhegazy/terraform-wordpress

0.0 1.0 0.0 15 KB

Example deploying wordpress to aws using Terraform and ansible

License: Apache License 2.0

Shell 41.73% HCL 58.27%

terraform-wordpress's Introduction

Terraform-wordpress

This is an example of fully automated deployment of wordpress app to aws using Terraform, ansible and shell script.

Prerequisite

  1. Install Terraform
  2. Install Ansible
  3. Install awscli
  4. Configure awscli with key and secret (aws configure)

Quickstart

  1. git clone [email protected]:bhegazy/terraform-wordpress.git
  2. cd terraform-wordpress
  3. ./deploy.sh --app=<app_name> --environment=<environment> --num=<number_of_aws_instances> --size=<aws_instance_size>

Example

./deploy.sh --app=test --environment=staging --num=2 --size=t2.micro

The script above will output AWS ELB DNS address, which is where wordpress is hosted.

Clean-up

rm ansible-key* && terraform destroy terraform

Declaimer

DO NOT USE IN PRODUCTION THIS IS ONLY CREATED AS AN EXAMPLE.

TODO

  • Create mysql db using AWS RDS.
  • Create Dockerfile for wordpress app.
  • Create ssl cert from AWS Certificate Manager and redirect to https.
  • Create route53 dns and point to ELB.
  • Use autoscalling groups instead of plain ec2

terraform-wordpress's People

Contributors

bhegazy avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.