Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frnn4268/docker-aws-ecs-nodejs
This is a simple Node.js app demonstrating Docker containerization and deployment to AWS ECS using Terraform.
https://github.com/frnn4268/docker-aws-ecs-nodejs
Last synced: 14 days ago
JSON representation
This is a simple Node.js app demonstrating Docker containerization and deployment to AWS ECS using Terraform.
- Host: GitHub
- URL: https://github.com/frnn4268/docker-aws-ecs-nodejs
- Owner: Frnn4268
- Created: 2024-07-18T04:22:26.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-07-18T04:52:02.000Z (6 months ago)
- Last Synced: 2024-07-19T09:39:11.648Z (6 months ago)
- Language: HCL
- Homepage:
- Size: 29.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Overview
This repository contains a demo Node.js application showcasing Docker containerization and deployment to AWS ECS using Terraform. The application serves a basic "Hello World" message and illustrates a streamlined workflow for deploying containerized applications on AWS.## Features
- Docker Containerization: Utilizes Docker to containerize the Node.js application, facilitating consistency and portability across different environments.
- AWS ECS Deployment: Demonstrates deployment to AWS ECS (Elastic Container Service) for scalable and reliable execution in the cloud.
- Terraform Automation: Uses Terraform to automate the setup of AWS resources, including ECR (Elastic Container Registry), ECS clusters, and networking components.
- Integration with AWS Services: Includes integration with AWS services like ECR for image storage and ECS for container orchestration.Prerequisites
Before getting started, ensure you have the following installed:- Docker: [Install Docker](https://docs.docker.com/get-docker/)
- Terraform: [Install Terraform](https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli)## Getting Started
Follow these steps to deploy the application on AWS ECS:
1. Clone the Repository:
> git clone> cd .\docker-aws-ecs-nodejs\app\
2. Build the Docker Image:
> docker build -t my-application-image .3. Push Docker Image to ECR:
> aws ecr get-login-password --region | docker login --username AWS --password-stdin
> docker tag my-application-image:latest /my-application-image:latest> docker push /my-application-image:latest
4. Deploy with Terraform:
> terraform init
> terraform apply6. Access the Application:
Once deployed, access the application via the load balancer DNS provided by AWS.## Acknowledgments
- [AWS Documentation](https://docs.aws.amazon.com/)
- [Terraform Documentation](https://developer.hashicorp.com/terraform/docs)