Lakshay Anand, Nikhil Batheja, Raj Kiran Reddy Narala, Roshan Fathima Sahul Hameed
Pre-requisites
- Three S3 bucket for storing terraform state and website images.
- SSH keys for production, staging and development environment.
- Cloud9 or similar environment having all the packages installed to access AWS environment.
- GIT repository with public access and invite collaborators to access the repository
Instructions
- Create a S3 bucket in the environment.
- Create a Cloud9 or similar environment having all the packages installed to access AWS environment.
- Create a local repository in your cloud9 environment. Create a folder named “finalproject” and initiate the following commands “git init” and to add the user name and email follow these commands “git config –global user.name “#enter user name” and git config –global user.email “#enter user email”
- Enter the remote file with this command: git remote add origin “#http link for the repo”
- Enter the following commands to check the status : git status
- Run the command = git clone -b master https://github.com/RoshanFathima/FinalProjectGroup13.git
- For Devlopment, Switch the directory to dev, for staging, the directory is staging and for prod, its prod.
- Run tf init in both the network and vm folder.
- Upload one image in all of the buckets and create a public URL for it and paste it in "install_httpd.sh.tpl" file.
- Run tf plan and then tf apply for whatever enviroment you want to configure.
- Once, all the enviroments are configured using above commands, switch to console and deploy the Application Load Balancer. In target groups, put all the webservers in the enviroment.
- You have now successfully deployed the environment.
- Go to all the folders in Project and run tf destroy to clean up the environment.