Git Product home page Git Product logo

aws-deployment-1's Introduction

AWS Deployment using AWS CLI

Table of Contents

Description

The repo has scripts to a Node.js image processing web application connected to a MYSQL AWS RDS, and two s3 buckets.
The application is deployed on to two AWS EC2 Ubuntu instances behind a Internet Gateway, AWS virtual private cloud, two subnets, and a Elastic Load Balancer utilizing two subnets.

Folder structure

midterm
├── README.md
├── scripts
│ ├── run.sh
│ └── templates
│ ├── create-env.sh
│ ├── destroy-env.sh
│ └── install-app-env.sh
└── web-app

File description

  • run.sh gets user input and provide the variables to each template file.
  • create-env.sh create aws infrastructure.
  • install-app-env.sh clones repo and start node app.
  • destroy-env.sh1 destroys the previously created AWS infrastructure.

AWS Infrastructure created

  • 1 internet gateway
  • 1 VPC
  • 2 Subnets
  • 1 Security group
  • 2 s3 buckers
  • 1 DB subnet
  • 1 RDS MYSQL instances
  • 1 Target group
  • 1 ELB application load balancer
  • 2 EC2 instances

Pre-deployment

  • Must have awscli properly setup.
  • Need a EC2 instance keypair.
  • Need a EC2 instance profile for AWS EC2 service with at least S3 and RDS full privileges.
  • Line endings for shell scripts must be LF.
  • Keypair must exist in region you choose.

Note: Github deployment key is preseeded in AMI image w/ git, nodes, and aws installed.

Deploy infrastructure and application

  • Must be linux/Unix environment
  • Run run.sh script
  • Load Balance DNS name is returned at the end of the script, will take a couple seconds to propagate.

Destroy infrastructure and application

  • Run destroy.sh script

aws-deployment-1's People

Contributors

jbsummoner 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.