Skip to content

awsfundamentals-hq/ecs-fargate

Repository files navigation

Simple Node.js App with Fargate via ECS using SST v3

Architecture Diagram

This project demonstrates how to run a simple Node.js app using Fargate via ECS (Elastic Container Service) with SST (Serverless Stack) v3.

Getting Started

To run this application, follow these steps:

  1. Ensure you have Node.js installed on your system.
  2. Clone this repository to your local machine.
  3. Install the dependencies by running npm install in the project root directory.
  4. Provision the infrastructure via npx sst dev.
  5. Build and push the Docker image by running npm run docker:build.
  6. Access your application via http://localhost:3000.

About the Project

This application is a simple Node.js app that runs in a Docker container, deployed to Fargate via ECS using SST v3 for infrastructure provisioning.

Project Structure

  • backend: Containing the backend files
  • app: The simple Next.js-based frontend
  • sst.config.ts: SST/Pulumi-based infrastructure configuration

Learn More

To learn more about Fargate, ECS, and SST, check out the AWS documentation and SST documentation.

About

🏗️ Learn How to Run Apps on Fargate via ECS

Topics

Resources

Stars

Watchers

Forks