{"id":15510656,"url":"https://github.com/dalen/ecs-run","last_synced_at":"2025-04-23T03:07:59.043Z","repository":{"id":47044877,"uuid":"136922175","full_name":"dalen/ecs-run","owner":"dalen","description":"Run a task on AWS ECS and stream output","archived":false,"fork":false,"pushed_at":"2024-07-26T04:43:04.000Z","size":161,"stargazers_count":14,"open_issues_count":3,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T21:32:06.370Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/dalen.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":"2018-06-11T12:19:01.000Z","updated_at":"2024-08-16T15:49:47.000Z","dependencies_parsed_at":"2025-03-05T00:32:04.788Z","dependency_job_id":"68046e02-69ac-4868-9ca2-cab7817e7de6","html_url":"https://github.com/dalen/ecs-run","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalen%2Fecs-run","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalen%2Fecs-run/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalen%2Fecs-run/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalen%2Fecs-run/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dalen","download_url":"https://codeload.github.com/dalen/ecs-run/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250360485,"owners_count":21417721,"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":[],"created_at":"2024-10-02T09:50:18.326Z","updated_at":"2025-04-23T03:07:59.020Z","avatar_url":"https://github.com/dalen.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/dalen/ecs-run.svg?branch=master)](https://travis-ci.com/dalen/ecs-run)\n\n# ecs-run\n\nRun a task on AWS ECS and stream output.\n\nAs input this takes an existing cluster and service and runs a task with the same subnets and execution role, but with a different command.\nThis can for example be used to run a rake task on a Rails service in ECS.\n\n## Usage\n\n```\necs-run 0.2.0\nErik Dalén \u003cerik.gustav.dalen@gmail.com\u003e\n\nUSAGE:\n    ecs-run [OPTIONS] \u003cCLUSTER\u003e \u003cSERVICE\u003e \u003cCOMMAND\u003e...\n\nFLAGS:\n    -h, --help       Prints help information\n    -V, --version    Prints version information\n\nOPTIONS:\n    -n, --name \u003cCONTAINER\u003e    Name of container to run command in\n    -E, --env \u003cENV\u003e...        Environment variable to pass to container, VAR=value\n\nARGS:\n    \u003cCLUSTER\u003e       Name of cluster to run in\n    \u003cSERVICE\u003e       Service to base task on\n    \u003cCOMMAND\u003e...    Command to run\n```\n\n### Using docker\n\nThis can be run using Docker in the folloging way:\n\n```\ndocker run --rm -it -v ~/.aws:/root/.aws:ro -e AWS_PROFILE -e AWS_REGION -e AWS_DEFAULT_REGION edalen/ecs-run \u003ccluster\u003e \u003cservice\u003e \u003ccommand\u003e\n```\n\nIf you have the credentials set as environment variables you might need to forward them as well, by adding `-e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY` etc.\n\nIf you run it in CodeBuild you have to pass the `AWS_CONTAINER_CREDENTIALS_RELATIVE_URI` to give it access to the IAM role.\n\n## Related work\n\n- [ecs-run-task](https://github.com/buildkite/ecs-run-task) - Similar, but creates a new task definition instead of reusing the one from an existing service.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalen%2Fecs-run","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdalen%2Fecs-run","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalen%2Fecs-run/lists"}