Git Product home page Git Product logo

aws_ecs_playground's Introduction

Playground for ECS terraform deployment and app development

How to run?

Requirements

  • Terraform installed
  • Docker installed
  • AWS cli setup

Limitations

  • Currently this is set to deploy to eu-west2 (London)
  • There is hard set configurations to only allow one service to be configured
  • The ECS cluster is deployed to the default VPC
  • It allows for all traffic !!!! DO NOT RUN THIS FOR EXTENTED PERIODS OF TIME

First setup a aws image registry using

<project root>/.deployECR.sh

This should give you a registry URL needed for the next command below The run

<project root>/buildAndDeploy.sh <ECR registry URL>

The buildAndDeploy script will

  1. Install dependencies locally
  2. Dockerise it to an image
  3. Push to a the aws ECR
  4. Deploy and ECS cluster
  5. Deploy the image to a container running in the ECS cluster
  6. Create a ./destroy.sh
  7. The ECS cluster is made of EC2 t3.micro instances, As this is in the default VPC it is publically accessable, you should be able to do the curls below on an EC2 instance

To do a tear down run ./destroy


The application

The application is a nodejs express app

curl <host>:7070/data

Will retrieve all data of IP to data posted below

curl -X POST <host>:7070/data -d home

Will assosaite the data payload with the IP


aws_ecs_playground's People

Contributors

mkdirjava avatar

Watchers

James Cloos avatar  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.