A collection of useful tools and scripts to aid developers in managing and deploying applications with Amazon Elastic Container Service (ECS).
The ECS Tools repository provides a suite of scripts and configurations designed to streamline the development and deployment processes for applications utilizing Amazon ECS. These tools aim to simplify tasks such as environment setup, container management, and integration with AWS services.
- CI/CD Scripts: Automate the build and deployment pipeline for ECS applications.
- Docker Configurations: Predefined Dockerfiles and Compose files for setting up development and production environments.
- AWS Integration: Scripts to facilitate interactions & testing with AWS services like DynamoDB and S3.
Before using the tools in this repository, ensure you have the following installed:
-
Clone the Repository:
git clone https://github.com/acorelli/ecs-tools.git cd ecs-tools
-
Install Python Dependencies:
pip install -r requirements.txt
-
Configure Environment Variables:
- Duplicate the
.env.example
file and rename it to.env
. - Update the
.env
file with your AWS credentials and other necessary configurations.
- Duplicate the
Before running any commands, make sure:
- You have AWS credentials configured (via
aws configure
or environment variables). - Your AWS CLI is authenticated.
- You define your AWS IAM Roles and Policies
- Substitute the appropriate Role/Policy ARNs in the configuration scripts
- Configure any other values in the configuration scripts as necessary
Currently the Dockerfile is designed to:
- Copy the current project directory into the container.
- Run
app.js
as the main entry point
To initialize and launch your container to ECS use:
python easy_aws.py start
This will call the cicd_scripts/launch_cluster.py
and:
- Create & push to the ECR repo
- Create the ECS Cluster
- Register the task definition
- Create a service for that cluster and task definition
This project is licensed under the Unlicense, making it free and unencumbered software released into the public domain.
Special thanks to all contributors and the open-source community for their invaluable resources and support.
Note: Ensure that any sensitive information, such as AWS credentials, is securely managed and not exposed in your codebase.