All Projects → enghwa → OneNodeEcs

enghwa / OneNodeEcs

Licence: Apache-2.0 License
one node Amazon ECS cluster using EC2 Spot instance and haproxy

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to OneNodeEcs

microservices-demo.github.io
The Microservices Demo website.
Stars: ✭ 65 (+195.45%)
Mutual labels:  ecs, amazon-ecs
Marathon Lb
Marathon-lb is a service discovery & load balancing tool for DC/OS
Stars: ✭ 449 (+1940.91%)
Mutual labels:  service-discovery, haproxy
modsecurity-spoa
HAProxy agent for ModSecurity web application firewall
Stars: ✭ 48 (+118.18%)
Mutual labels:  haproxy
Usagi
A hierarchical component entity system based game engine
Stars: ✭ 44 (+100%)
Mutual labels:  ecs
varnishtraining
Second iteration of my Varnish training. This version is specifically created for the Symfony Live Berlin 2017 workshop I've presented.
Stars: ✭ 31 (+40.91%)
Mutual labels:  haproxy
projen-test
An example project explaining how to create and publish CDK constructs using projen and jsii. It lets you publish your CDK constructs to npm, Maven, NuGet and PyPi.
Stars: ✭ 23 (+4.55%)
Mutual labels:  aws-cdk
coredns
CoreDNS is a DNS server that chains plugins
Stars: ✭ 8,962 (+40636.36%)
Mutual labels:  service-discovery
lagom-on-kube
This tutorial describes how to bootstrap a production-ready Lagom microservices cluster in a Kubernetes environment.
Stars: ✭ 58 (+163.64%)
Mutual labels:  service-discovery
Home
This is the old home for the Steeltoe project. Please refer to the SteeltoeOSS/steeltoe repository moving forward.
Stars: ✭ 49 (+122.73%)
Mutual labels:  service-discovery
aws-cdk-go
AWS CDK bindings for Go.
Stars: ✭ 94 (+327.27%)
Mutual labels:  aws-cdk
fargate-game-servers
This repository contains an example solution on how to scale a fleet of game servers on AWS Fargate on Elastic Container Service and route players to game sessions using a Serverless backend. Game Server data is stored in ElastiCache Redis. All resources are deployed with Infrastructure as Code using CloudFormation, Serverless Application Model,…
Stars: ✭ 30 (+36.36%)
Mutual labels:  ecs
matter
A modern ECS library for Roblox.
Stars: ✭ 39 (+77.27%)
Mutual labels:  ecs
ecs-airflow
Cloudformation templates for deploying Airflow in ECS
Stars: ✭ 37 (+68.18%)
Mutual labels:  ecs
amazon-eventbridge-cdk-audit-service-sample
Sample of a decoupled audit service using Amazon EventBridge and AWS Step Functions. Provisioned with AWS CDK.
Stars: ✭ 25 (+13.64%)
Mutual labels:  aws-cdk
space
A SCI-FI community game server simulating space(ships). Built from the ground up to support moddable online action multiplayer and roleplay!
Stars: ✭ 25 (+13.64%)
Mutual labels:  ecs
terraform-aws-ecs-cloudwatch-sns-alarms
Terraform module to create CloudWatch Alarms on ECS Service level metrics.
Stars: ✭ 23 (+4.55%)
Mutual labels:  ecs
herman
Herman is a tool to simplify deployment of AWS Services using ECS and Lambda, and the provisioning of various AWS services.
Stars: ✭ 33 (+50%)
Mutual labels:  ecs
bitECS
Functional, minimal, data-oriented, ultra-high performance ECS library written in JavaScript
Stars: ✭ 372 (+1590.91%)
Mutual labels:  ecs
c3
𝗖𝟯 provides compliant AWS CDK components to various security standards.
Stars: ✭ 24 (+9.09%)
Mutual labels:  aws-cdk
xilution-selenium-grid
A Selenium Grid that Runs in AWS ECS Fargate.
Stars: ✭ 22 (+0%)
Mutual labels:  ecs

One node ECS cluster using Spot Instance

This will deploy a single node ECS with t3a.micro, in us-east-2 (Ohio), this will give you ~USD $2 for 2vcpu/1Gib. ECS Tasks will use AWS Cloud Map for service discovery while Ha Proxy provides the load balancing.

Architecture diagram

Install

git clone https://github.com/enghwa/OneNodeEcs.git
cd OneNodeEcs
npm install
export AWS_DEFAULT_REGION=us-east-2  # or any of your favourite region, but take note if the t3a.micro spot price
npx [email protected] bootstrap
npx [email protected] deploy

Once all the resources are deploy (monitor this using AWS Cloudformation dashboard), you can use your browser to test:

http://<public IP of EC2>/  --> nyant cat
http://<public IP of EC2>/nginx  --> load balanced 2 nginx tasks

Remove

npx [email protected] destroy
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].