{"id":16507962,"url":"https://github.com/noahgift/eks-fargate-tutorial","last_synced_at":"2025-08-02T15:09:47.939Z","repository":{"id":65308547,"uuid":"339805889","full_name":"noahgift/eks-fargate-tutorial","owner":"noahgift","description":"A tutorial on using EKS with fargate on the AWS Cloud","archived":false,"fork":false,"pushed_at":"2021-05-23T21:23:17.000Z","size":21,"stargazers_count":10,"open_issues_count":1,"forks_count":30,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-08T14:39:32.135Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noahgift.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}},"created_at":"2021-02-17T17:41:24.000Z","updated_at":"2024-08-24T17:21:45.000Z","dependencies_parsed_at":"2023-01-16T15:15:37.689Z","dependency_job_id":null,"html_url":"https://github.com/noahgift/eks-fargate-tutorial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/noahgift/eks-fargate-tutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahgift%2Feks-fargate-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahgift%2Feks-fargate-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahgift%2Feks-fargate-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahgift%2Feks-fargate-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noahgift","download_url":"https://codeload.github.com/noahgift/eks-fargate-tutorial/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahgift%2Feks-fargate-tutorial/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268408199,"owners_count":24245577,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-11T15:32:02.939Z","updated_at":"2025-08-02T15:09:47.907Z","avatar_url":"https://github.com/noahgift.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ecs and eks fargate-tutorial or AWS App Runner\nA tutorial on using EKS, ECS with fargate, or AWS App Ruuner on the AWS Cloud\n\n### Verified Deploy with AWS App Runner\n\n### ECS method\n\n* setup app:  virtualenv + `make all`\n* test app local:  `python app.py`\n* curl it to test:  `curl localhost:8080/change/1/34`\n* create ECR Repo\n* build container\n* push container\n* run docker local:   `docker run -p 8080:8080 changemachine`\n* deploy to fargate\n* test public service\n\n\n### EKS method\n\n\n## Build a Fargate App\n\n*  Install `kubectl` and `eksctl`.  You can [follow instructions here](https://docs.aws.amazon.com/eks/latest/userguide/getting-started-eksctl.html).\n*  Open up either AWS CloudShell or AWS Cloud9\n*  Create a cluster at the terminal `eksctl create cluster --name FargateExploration --region us-east-2 --fargate` (Takes a few minutes) \n\nYou will see output similar to this\n\n```bash\n2021-02-17 17:52:07 [ℹ]  waiting for CloudFormation stack \"eksctl-FargateExploration-cluster\"\n2021-02-17 17:52:28 [ℹ]  creating Fargate profile \"fp-default\" on EKS cluster \"FargateExploration\"\n```\n\n\n*   Verify the cluster:  `aws eks describe-cluster --name FargateExploration --query cluster.resourcesVpcConfig.clusterSecurityGroupId` (or leave off the query and get entire description)\n\n* Create ECR Repo:\n\n![change-machine](https://user-images.githubusercontent.com/58792/108248106-76726500-7121-11eb-8b30-3b6dd38c3853.png)\n\n* ECS is much easier to setup with Fargate:  https://us-east-2.console.aws.amazon.com/ecs/home?region=us-east-2#/firstRun\n\n\n### AWS App Runner method\n\nThis repository can easily be converted to an AWS Runner Method in Wizard to the following:\n\n1.  For build do:  `pip install -r requirements.txt`\n2.  To run:  `python app.py`\n3.  For port:  `8080`\n\n\n![1-aws-app-runner](https://user-images.githubusercontent.com/58792/119260856-bfafd600-bba2-11eb-941e-30c42dff6a16.png)\n![app-service-logs](https://user-images.githubusercontent.com/58792/119261353-fedf2680-bba4-11eb-935e-9c2a837e7cb4.png)\n![deployed-app-service](https://user-images.githubusercontent.com/58792/119261367-0f8f9c80-bba5-11eb-8889-365f4b3ca4c4.png)\n\n\n\n\n\n### References\n\n* [Fargate-AWS](https://aws.amazon.com/getting-started/hands-on/build-modern-app-fargate-lambda-dynamodb-python/module-two/)\n* [Python-Fargate-AWS](https://github.com/aws-samples/aws-modern-application-workshop/tree/python/module-2)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoahgift%2Feks-fargate-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoahgift%2Feks-fargate-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoahgift%2Feks-fargate-tutorial/lists"}