Git Product home page Git Product logo

elasticbeanstackcfsscript's Introduction

aws-eb-Podcast-nodejs

This is a project to show you how to Deploy a Node.js Application like this over AWS Beanstalk using AWS Cloud Formation.

Prerequisites

To run this code, you need:

Install Local Requirements

AWS Command Line Interface (AWS CLI)

Installing the AWS Command Line Interface

pip install --upgrade --user awscli

Configure awscli (iterative mode)

cd ~
aws configure

Elastic Beanstalk Command Line Interface (EB CLI)

Install the Elastic Beanstalk Command Line Interface

pip install --upgrade --user awsebcli

Create key pairs for AWS Beanstalk EC2 instances

Creating a AWS Key Pairs using AWSCLI

aws ec2 create-key-pair \
  --key-name hello-world-app-ec2-key-pair \
  --query 'KeyMaterial' \
  --region eu-west-1 \
  --output text > ~/.ssh/hello-world-app-ec2-key-pair.pem

chmod 400 ~/.ssh/hello-world-app-ec2-key-pair.pem

Create initial stack

This project provide a deploy.sh script to help us deploy our project and environment.

./deploy.sh init

It use AWS CloudFormation template locate in deployment/cf-beanstalk.json and a config file deployment/application-conf.json where you can put your own config Parameters

Destroy stack

This project provide a deploy.sh script to help us destroy our project and environment.

./deploy.sh destroy

Deploying changes

you can use eb cli to control your project.

if you want to changes your project, execute:

eb deploy <your environment name>

if you want to know the environments in your project, just execute:

eb list

if you want open your application environment using your default web browser use:

eb open

if you want to knoe more about eb cli, click here

elasticbeanstackcfsscript's People

Contributors

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