Giter Club home page Giter Club logo

3_tier_aws's Introduction

AWS Terraform Project In this project, we aim to build a three-tier wordpress application using Terraform.

Resources created;

1 x VPC 3 x Private Subnets 3 x Public Subnets 1 x Internet Gateway 1 x NAT Gateway ( If enabled ) 1 x Public Route table 1 x Private Route table 1 x RDS Aurora cluster with 1 writer, 3 reader instances 1 x EFS 1 x Application Load Balancer 1 x Auto Scaling Group (3 minimum 99 maximum instances) 1 x security group for Web layer 1 x security group for Database layer 1 x security group for EFS Route53

Prerequisites AWS account with configured AWS credentials.(if running on an EC2, make sure to give admin privilages to the instance). Add below Terraform environment variables on the command line or add them in ~/.bashrc . Change the region and domain name to your own. export TF_VAR_region=us-east-1 ( Change to any region ) export TF_VAR_domain_name=domain.com ( Change to your domain name) Additionally, if your VM does not have administrator priviliages, run below commands to add your AWS credentials as environment variables.

$ export AWS_ACCESS_KEY_ID={Your AWS_ACCESS_KEY_ID} $ export AWS_SECRET_ACCESS_KEY={Your AWS_SECRET_ACCESS_KEY} Terraform installed. Required version >= 1.1.1

Remote Backend Create S3 bucket with name of "tfstate-<Account_ID>" in region "us-east-1"

Create DynamoDB table name of "tfstate-team1" with LockID key

Under VPC>backend.tf change "tfstate-*******" to "tfstate-<Account_ID>"

Initializing Terraform Terraform resources will be created using makefile.

Run makefile under same directory where makefile is located.

To run:

make build

Deleting Resources To delete the Application:

make destroy

3_tier_aws's People

Contributors

serglit72 avatar oliaasem avatar ruslanbahna avatar hasanuckun avatar cyberbek avatar

Watchers

Kathleen Veselova 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.