GithubHelp home page GithubHelp logo

davidkvc / dotnet-web-on-fargate Goto Github PK

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

A demo project showcasing .Net app deployment on AWS ECS (Fargate)

Dockerfile 6.46% C# 54.78% Shell 3.94% JavaScript 1.72% TypeScript 33.10%
cdk ecs ecs-fargate dotnet aws

dotnet-web-on-fargate's Introduction

DotNet Web App on AWS Fargate

This repository contains AWS CDK project for demo ASP.Net Core 5 application hosted on AWS Fargate. It is my playground for learning AWS.

Below diagram illustrates important architecture components and interactions of this project.

The diagram might not always be up to date with the code

Notable problems solved in this project

  • Deploying dockerized dotnet app on ECS
  • Configuring ECS to use exposed app's healthcheck endpoint on non-public port
  • Configuring ELB to use the same healthcheck endpoint
    • with required security group modifications
    • healthcheck is only exposed internally. Can not be requested from the internet
  • Log processing by sidecar Fluentbit container with CloudWatch target
    • allows us to define advanced log processing pipeline
    • processes logs from files instead of app's stdout
  • Sharing filesystem across multiple containers
  • Sidecar nginx reverse proxy
    • allows us to configure some common behaviour outside of the app. E.g. compression.
    • it really is just an example how to do it if we need it
  • Secrets management using SSM Parameter Store
    • secrets are stores as single SSM parameter encoded as JSON document
    • app downloads secrets to local filesystem on startup
  • Automatic app redeployment on secret change
    • example of configuration that will ensure that when SSM parameter is updated app is redeployed and downloads the latest value
  • Custom metrics from app's logs
  • CloudWatch Dashboard with custom metrics
  • Utilizing CloudMap's service discovery for direct app-to-app communication

Repository contents

  • infra - CDK project directory
  • app - application code + other required Docker image definitions

dotnet-web-on-fargate's People

Contributors

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