/nodejs-application

Simple node.js web application that can be deployed to AWS free tier account & supports Infrastructure as a code using Terraform and creates AMI from packer and CICD pipeline setup.

Primary LanguageHCL

IaC (infrastructure-as-code)

This repository contains sub components to bring up Node.js web application in AWS Infrastructure.

Table of Contents

nodejs-hello-world

This folder nodejs-hello-world contains a sample node.js web applicaiton.

Packer

This folder packer contains packer template JSON file to create UBUNTU AMI for WEB Application.

  • JSON-template - Packer json template to create ubuntu AMI for nodejs applicaiton.
  • Provisioners - Provisoner file will install docker and build docker image locally with node.js application.
  • Jenkinsfile contains a sequence of instructions to create a Jenkins Pipeline.
  • Readme.md

Terraform

This folder Terraform contains terraform files to bring up EC2 instance and security group.

nodejs-terraform-module - This module get the values from main.tf

CI/CD

This CI/CD folder creates seed Job and scans and create MultiBranchPipeline job from Jenkinsfile.

Usage

Dive into each folder's README.md file to have your node.js web application created.

Demo