Code Monkey home page Code Monkey logo

codewithmuh / django-aws-ecs-fargate Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 18 KB

This GitHub repository offers a streamlined solution for deploying your production-grade application on AWS ECS Fargate seamlessly integrated with essential AWS services such as RDS, S3, Load Balancers, and AWS ECR. Simplify your deployment process and leverage the power of AWS infrastructure with this comprehensive repository.

License: MIT License

Python 71.22% Dockerfile 12.58% Shell 16.20%
aws aws-s3 django django-application ecr-repositories ecs-fargate fargate load-balancer

django-aws-ecs-fargate's Introduction

Deploy Django Application on AWS ECS Fargate

1. Clone Repository


git clone https://github.com/codewithmuh/django-aws-ecs-fargate.git

2. Setup Two Options

  1. Local Setup
  2. Deploy on AWS ECS Fargate

1. Quick Local Setup

  1. Make sure you Docker desktop or docker daemon is running . you can install docker from office website.

  2. Run this command to start project running locally.


docker compose -f "build-process/aws-ecs-fargate/docker-compose-django-backend.yml" up -d --build

2. Deploy on AWS ECS Fargate

Step 1: Configure AWS CLI with a Profile Name

Ensure that you have AWS CLI installed. If not, download and install it from the official AWS CLI website.

Run the following command and replace YOUR_AWS_PROFILE_NAME with your desired AWS CLI profile name:

aws configure --profile YOUR_AWS_PROFILE_NAME

Replace YOUR_AWS_PROFILE_NAME with the desired name for your AWS CLI profile.

Input AWS Access Key ID: Enter your AWS Access Key ID when prompted.

Input AWS Secret Access Key: Enter your AWS Secret Access Key when prompted.

Default Region: Specify the default AWS Region you want to use for this profile.

  1. Open deploy-prod.sh file and make chnage, Replace YOUR_AWS_PROFILE_NAME, YOUR_REGION_NAME, YOUR_ACCOUNT_ID, YOUR_ECR_REPO_NAME, YOUR_CLUSTER_NAME, YOUR_SERVICE_NAME

  2. Then Run this command, it will build eocker image, and push image to ecr, It will also update ecs service


build-process/aws-ecs-fargate/deploy-prod.sh

django-aws-ecs-fargate's People

Contributors

codewithmuh avatar

Stargazers

arun9theja avatar  avatar  avatar

Watchers

 avatar

Forkers

arun9theja

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.