This repository contains a simple Flask web application that calculates the age based on a user's date of birth, deployed using Docker and AWS ECS with Fargate. The goal of this project is to understand how Docker works, how to create Docker images, how to containerize a Python Flask application, and how to deploy it on AWS.
The application is an age calculator that: Takes a user's name and date of birth as input. Calculates the age in years and months based on the current date (July 08, 2025, 03:42 PM IST). Displays the result on the same page with a styled interface using CSS.
- Python 3.13: For the Flask backend.
- Flask: A micro web framework for building the application.
- HTML/CSS: For the frontend interface.
- Docker: For containerizing the application.
- AWS IAM: For authenticating and managing access to AWS services.
- AWS ECR: For storing and managing Docker images.
- AWS ECS with Fargate: For deploying and running the containerized application.
- AWS Security Groups: For controlling network access to the ECS service.
docker build -t calculate_age .
docker run -p 8080:5000 calculate_age
Refer to this offical AWS blog - https://docs.aws.amazon.com/AmazonECR/latest/userguide/docker-push-ecr-image.html