Git Product home page Git Product logo

team2-project-terraform's Introduction

SITUATION:

Create database using AWS RDS with terraform on a custom VPC created by Team1.

Pre-requisites

Terraform version: 0.11.14

Custom VPC created by Team1

Database engine: AWS Aurora(mysql)

Engine version: 5.6.10a

TASK:

Screen Shot 2020-03-27 at 8 44 33 PM

Pre-requsites

Data source file to pull VPC information from Team1's backend using their backend key.

Screen Shot 2020-03-27 at 9 06 13 PM

Used dynamodb lock so that multiple team members can't run terraform apply at the same time

Added multiple regions to test

Made use of interpolations in our db_cluster file

commands used to run our code: (run commands under the main repo)

terraform init

source sentenv.sh comfigurations/regions/us-east-1.tfvars

terraform apply -var-file configurations/us-east-1.tfvars

created output.tf file to include our DB name, region, endpoints of our DB for Team3.

challanges:

Make sure to use your own backend (s3 bucket) in .tfvars files

Waiting on other teams

RDS gets created but endpoints take too long to create.

ACTION:

Fixed our .tfvars file to have the correct information (our backend (S3)). This resolved 1st issue we had.

Communication with other teams whenever state file was broken.

Team1 had to fix their state file couple times, then were able to continue with our task

Created an EC2 instance on public subnet of the VPC that was created by Team1. This way our database and the instance would be on the same VPC.

On EC2 install mariadb. Then connect to the database by using the below command:

 mysql -h <RDS endpoint> -u <mysqlusername> -p 

RESULT:

Created RDS successfully with the outputs as below:

Screen Shot 2020-03-27 at 9 28 52 PM

Hours:

1 Day :

Tatiana - 5 hours (+ additional 5 hours )

Gulmira - 5 hours

Safa - 5 hours

Merve - 5 hours

2 Day :

Tatiana - 7 hours

Gulmira - 7 hours

Safa - 7 hours

Merve - 7 hours

3 Day :

Tatiana - 6 hours

Gulmira - 6 hours

Safa - 6 hours (+ additional 2.5 hours)

Merve - 6 hours (+ additional 2.5 hours)

team2-project-terraform's People

Contributors

mrvgms avatar tmoraru avatar safag05 avatar gulmira83 avatar

Watchers

 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.