GithubHelp home page GithubHelp logo

nodelynx / terraform-aws-wordpress Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aleti-pavan/terraform-aws-wordpress

0.0 0.0 0.0 338 KB

This is Terraform configuration to install and configure wordpress on AWS. March, 2019

PHP 24.29% HCL 69.50% Shell 6.21%

terraform-aws-wordpress's Introduction

What's this:

This is to set up wordpress using AWS infrastructure. We are using terraform to provision infrastructure. Code uses and creates following aws services.

  1. VPC and it's components
  2. Subnets, Route Tables, Internet Gateway, Nat Gateway.
  3. EC2 instance
  4. EIP for NAT Gateway
  5. RDS mysql instance.
  6. Security Groups to access both EC2 and MYSQL

Note:

You may get charged by aws for using services

Pre-requisite:

  1. You need to have Ssh keys generated and should be put into ~/.ssh/ , if your machine is windows then feel free to use diff path and update the same in the ssh_key variable in the vars.tf

  2. create an IAM user and create security credentials(AccessKey, SecretKey) and update in the ~/.aws/credentials file like below terraform-aws-profile

Note : if you have default profile, just erase the profile attribute in provider.tf

Usage:

provisioning:

  1. git clone https://github.com/aleti-pavan/terraform-aws-wordpress.git
  2. cd terraform-aws-wordpress
  3. terraform init
  4. terraform plan
  5. terraform apply -auto-approve

Destroying the Infra:

  1. cd terraform-aws-wordpress (Be in the repo directory)
  2. terraform destroy -auto-approve

Change: (latest detail from top)

Code has been changed on 11th April, 2020. Code is now compatible with below versions.

Versions:

Terraform v0.12.24

  • provider.aws v2.12.0
  • provider.template v2.1.2

(Old) Code slightly changed on 31st May, 2019. I have added providers.tf with versions required for each provider

terraform-aws-wordpress's People

Contributors

aleti-pavan 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.