Coder Social home page Coder Social logo

fargate-sam's Introduction

fargate-sam

Template for deploying a public ALB + ECS Fargate service using CloudFormation and SAM CLI.

Based on https://containersonaws.com/pattern/public-facing-web-ecs-fargate-cloudformation

arch

Usage

Requires the AWS SAM CLI to be installed.

 Choose a make command to run

  build       create ecr repo and build/push image         make build name=my-app dockerfile=../
  infra       deploy infrastructure only                   make infra name=my-app
  infra-app   deploy infrastructure and build/deploy app   make infra-app name=my-app dockerfile=../
  delete      delete entire stack                          make delete name=my-app

You can set your app specific parameters in the stack.yml file. For example:

# container settings
ServiceName: my-app
ContainerCpu: 256
ContainerMemory: 512
ContainerPort: 8080
DesiredCount: 1
HealthCheckPath: /health
ImageUrl: public.ecr.aws/aws-containers/proton-demo-image:2d7f777

If you want to provision cloud resources, build local code into an image, and deploy it using a single command, you can use the following, specifying the name and the releative location of your Dockerfile.

make infra-app name=my-app dockerfile=../

If you want to only provision the cloud resources and use another tool to build and deploy your container image on top, you can run the following which will deploy a tiny default backend image that only responds to health checks.

make infra name=my-app

fargate-sam's People

Contributors

jritsema avatar

Stargazers

Allen Lyons avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

smith2t

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.