{"id":22278434,"url":"https://github.com/mnc/rails-console-ecs","last_synced_at":"2025-10-20T07:58:23.033Z","repository":{"id":112665046,"uuid":"142236764","full_name":"mnc/rails-console-ecs","owner":"mnc","description":"Simple shell script for executing rails console in a ECS Task.","archived":false,"fork":false,"pushed_at":"2018-08-03T03:23:30.000Z","size":6,"stargazers_count":14,"open_issues_count":5,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-14T21:41:19.599Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/mnc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-07-25T02:28:41.000Z","updated_at":"2024-04-22T01:19:09.000Z","dependencies_parsed_at":"2023-06-26T01:45:34.896Z","dependency_job_id":null,"html_url":"https://github.com/mnc/rails-console-ecs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnc%2Frails-console-ecs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnc%2Frails-console-ecs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnc%2Frails-console-ecs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnc%2Frails-console-ecs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mnc","download_url":"https://codeload.github.com/mnc/rails-console-ecs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227941971,"owners_count":17844681,"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-12-03T15:14:32.594Z","updated_at":"2025-10-20T07:58:17.991Z","avatar_url":"https://github.com/mnc.png","language":"Shell","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# rails-console-ecs\nThis is simple shell script for executing rails console in a ECS Task.\nYou can exec `rails c` command from outside of ECS Cluster by executing only one command.\n\n## How it works\n\n1. Run a Task using a latest Task Definition in a specific ECS Cluster\n2. Get private IP by AWS CLI\n3. Get docker container ID via SSH\n4. Exec `rails c` command in the container via SSH\n5. Stop the Task\n\n## Usage\n\n```\nUsage:\n    rails-console-ecs [options]\n\nOptions:\n    -v    Version\n    -h    Show help of this command\n    -c    Ecs cluster which a task runs in. use RAILS_C_ECS_CLUSTER by default\n    -d    Ecs task definition. use RAILS_C_TASK_DEFINITION by default\n    -e    Rails env. use RAILS_C_ENV by default\n    -r    Region. use RAILS_C_REGION by default\n```\n\n## Installation\n\n### Requirement\n- [aws-cli](https://github.com/aws/aws-cli)\n- [jq](https://github.com/stedolan/jq)\n\n### Install rails-console-ecs\n\n#### Linux\n\n```shell\ncurl https://raw.githubusercontent.com/mnc/rails-console-ecs/master/rails-console-ecs | sudo tee /usr/bin/rails-console-ecs\nsudo chmod +x /usr/bin/rails-console-ecs\n```\n\n#### Mac\n\n```shell\ncurl https://raw.githubusercontent.com/mnc/rails-console-ecs/master/rails-console-ecs | sudo tee /usr/local/bin/rails-console-ecs\nsudo chmod +x /usr/local/bin/rails-console-ecs\n```\n\n## LICENSE\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnc%2Frails-console-ecs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmnc%2Frails-console-ecs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnc%2Frails-console-ecs/lists"}