Skip to content

gmoraa/terraform-3tier-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample 3tier app

This repo contains code for a Node.js multi-tier application.

The application overview is as follows

web <=> api <=> db

The folders web and api respectively describe how to install and run each app.

Architecture

diagram

Terraform

In order to create the resources, provide AWS authentication. The terraform.tfvars file is a valid option, just create the file in the Terraform directory with the following structure:

aws_access_key = "XXXXXXXXXXXXXXXXXXXX"
aws_secret_key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

In the same account, you must have 2 Docker images to pull, "api" and "web", both available in the respective directory as a Dockerfile. The CI/CD pipeline will update the images on every change to this repository via .gitlab-ci.yml.

Once those two requirements are met, execute terraform init and terraform apply from the same directory.

About

Deploying a serverless 3 tier application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published