Giter Site home page Giter Site logo

aprilmintacpineda / aws-ecs-fargate-cluodformation-template Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 238 KB

Deploy a Dockerized NodeJS Server with WebSocket on AWS ECS - Fargate using CloudFormation Template

JavaScript 59.68% Shell 17.97% Dockerfile 2.27% TypeScript 20.07%
aws-ecs aws-fargate docker nodejs cloudformation-template aws-vpc aws-alb aws-autoscaling websocket

aws-ecs-fargate-cluodformation-template's Introduction

I used this to deploy a dockerized NodeJS Server with WebSocket on AWS with monitoring using CloudWatch Dashboard.

  • Elastic Compute Service
  • Fargate
  • Web Application Firewall
  • Virtual Private Cloud
  • Application Load Balancer
  • Application Auto Scaling
  • CloudWatch

Setup

  1. Copy scripts
cp template-cloud-deploy.sh cloud-deploy.sh
cp template-publish.sh publish.sh
cp template-cf.yaml cf.yaml
cp template-loadtest.sh loadtest.sh
  1. Create image repo on ECR.
  2. Replace placeholders on publish.sh, cf.yaml, cloud-deploy.sh, and on cf.yaml.
  3. Run sh ./publish.sh.
  4. Run sh ./cloud-deploy.sh

Succeeding updates

After the first deployment, uncomment the final lines in publish.sh to automatically redeploy ECS Service.

Load test

  1. Replace placeholders on loadtest.sh.
  2. Run sh ./loadtest.sh

aws-ecs-fargate-cluodformation-template's People

Contributors

aprilmintacpineda avatar

Stargazers

 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.