Skip to content

henriquemeloo/ecr-ecs-fargate-overview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECS services and tasks tutorial

This project creates a sample infrastructure for an application consisting of one API and one task. The API is hosted in AWS ECS, launched in Fargate, with a load balancer directing its traffic, and the tasks are run by the API, in AWS ECS, launched also on Fargate. All resources are created in the same region, but the API has different instances running in different availability zones. A high level diagram of the aplication is presented: Simplified diagram of the solution

And a more detailed view, describing the network: Diagram of the solution

This is not production-ready and would require a few security, as well as performance improvements to be put in production, but it should give you a nice starting point.

Infrastructure is described with Terraform, and deploy is made with GitHub Actions. The following secrets must be created:

  • AWS_ACCESS_KEY_ID: access key of the "deploy user" created by the project;
  • AWS_ACCOUNT_ID: ID of your AWS account;
  • AWS_DEFAULT_REGION: region where to deploy resources;
  • AWS_SECRET_ACCESS_KEY: secret access key of the "deploy user" created by the project;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published