GithubHelp home page GithubHelp logo

l2p6-infra-code's Introduction

Infrastructure-as-a-Code

This repository contains code for provisioning the AWS Infrastructure and creating the NodeJs Application AMI

Getting started

To get the infrastructure running on AWS:

  • Clone this repository
  • Change directory to terraform/
  • Run "terraform init" to install all the required modules from the given source
  • Run "terraform apply" to see the resources to be created, after typing "yes" in console, your AWS Infrastructure will be provisioned

To build AMI for NodeJS Application(BACKEND):

  • Change directory into Packer/
  • Run "packer init ami.pkr.hcl" for initializing packer.
  • Run "packer validate ami.pkr.hcl" for validating the configuration of this file.
  • Run "packer build ami.pkr.hcl" to start creating the AMI and observe the process to know how it happens. Trust me, it's completely, MAGICAL!

Code Overview

Dependencies

  • we have added the required dependeinies in AMI.

Application Structure

  • Terraform/ - This folder contains terraform code to create infrastructure for 3-Tier WebApp Deployment in AWS.
  • Packer/ - This folder contains the code to create AMI for the backend i.e NodeJS Application.

Authentication:

Install "AWS cli" and configure AWS Credentials(Access Key ID, Secret Access Key and Region) of the account in which we are deploying the Web Application. NOTE: You may also export Access Key ID and Secret Access Key to .env file and map the variables in provider.tf

l2p6-infra-code's People

Contributors

ajgit98 avatar ad-squareops 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.