{"id":17601028,"url":"https://github.com/antonpogrebenko-public/serverlessecs","last_synced_at":"2026-05-09T03:31:36.776Z","repository":{"id":258530959,"uuid":"874091055","full_name":"antonpogrebenko-public/ServerlessECS","owner":"antonpogrebenko-public","description":"ServerlessECS is a generic example of deploying a serverless application on AWS using ECS and Docker. It includes flexible configurations for IAM roles, ECS task definitions, and log retention policies. Written in Python 3.12, this repository offers a scalable and general-purpose solution, easily deployable with the Serverless Framework.","archived":false,"fork":false,"pushed_at":"2024-10-17T09:21:25.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T22:24:24.151Z","etag":null,"topics":["aws","cloud-deployment","containers","docker","ecr","ecs","fargate","infrastructure-as-code","python","scalable-architecture","serverless"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antonpogrebenko-public.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-17T08:35:06.000Z","updated_at":"2024-10-17T09:29:07.000Z","dependencies_parsed_at":"2024-10-22T17:33:05.200Z","dependency_job_id":null,"html_url":"https://github.com/antonpogrebenko-public/ServerlessECS","commit_stats":null,"previous_names":["antonpogrebenko-public/serverlessecs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonpogrebenko-public%2FServerlessECS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonpogrebenko-public%2FServerlessECS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonpogrebenko-public%2FServerlessECS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonpogrebenko-public%2FServerlessECS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antonpogrebenko-public","download_url":"https://codeload.github.com/antonpogrebenko-public/ServerlessECS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246249222,"owners_count":20747167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","cloud-deployment","containers","docker","ecr","ecs","fargate","infrastructure-as-code","python","scalable-architecture","serverless"],"created_at":"2024-10-22T12:08:03.086Z","updated_at":"2025-10-09T01:35:52.267Z","avatar_url":"https://github.com/antonpogrebenko-public.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ServerlessECS\nServerlessECS is a generic example of deploying a serverless application on AWS using ECS and Docker. It includes flexible configurations for IAM roles, ECS task definitions, and log retention policies. Written in Python 3.12, this repository offers a scalable and general-purpose solution, easily deployable with the Serverless Framework.\n\n\n## Pre-requisites\n\n1. **Node.js**: Ensure you have Node.js installed.\n2. **Python 3.xx**: Ensure you have Python installed (tested on 3.12).\n3. **Docker**: Ensure you have Docker installed.\n4. **AWS CLI**: Ensure you have the AWS CLI installed and configured with your AWS account.\n5. **AWS Account**: Ensure you have an AWS account with the necessary permissions to deploy the Serverless application.\n6. **Serverless Framework**: Install the Serverless Framework (v3.38 is still free to use) globally using npm:\n   ```bash\n   npm install -g serverless\n\n## Setup\n\n1. **Install project dependencies:**\n\n   ```bash\n   npm install\n   ```\n\n2. **Deploy the Serverless application:**\n\n   ```bash\n   sls deploy -r us-east-1 --verbose -s prod\n   ```\n\n## Running the application\n\n**Run task as a service:**\n\n   ```bash\n   aws ecs create-service \\\n       --cluster CLUSTER_NAME \\\n       --service-name hello-world-service \\\n       --task-definition hello-world-prod \\\n       --desired-count 1\n   ```\n\n**Run task as a standalone task:**\n\n   ```bash\n   aws ecs run-task \\\n       --cluster CLUSTER_NAME \\\n       --task-definition hello-world-prod\n   ```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonpogrebenko-public%2Fserverlessecs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantonpogrebenko-public%2Fserverlessecs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonpogrebenko-public%2Fserverlessecs/lists"}