{"id":20074032,"url":"https://github.com/nexxus-vi/simple_ec2_management","last_synced_at":"2026-05-16T00:38:09.719Z","repository":{"id":63540872,"uuid":"567375787","full_name":"nexxus-vi/simple_ec2_management","owner":"nexxus-vi","description":"Simple script to manage existing EC2 instances on AWS","archived":false,"fork":false,"pushed_at":"2023-03-31T10:11:31.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T00:33:25.347Z","etag":null,"topics":["aws","ec2","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nexxus-vi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-11-17T16:52:58.000Z","updated_at":"2024-05-10T15:51:44.000Z","dependencies_parsed_at":"2024-11-13T14:50:13.910Z","dependency_job_id":"290fbae6-389c-4f10-a72f-b22f8a21dfa8","html_url":"https://github.com/nexxus-vi/simple_ec2_management","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/nexxus-vi%2Fsimple_ec2_management","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nexxus-vi%2Fsimple_ec2_management/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nexxus-vi%2Fsimple_ec2_management/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nexxus-vi%2Fsimple_ec2_management/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nexxus-vi","download_url":"https://codeload.github.com/nexxus-vi/simple_ec2_management/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241504321,"owners_count":19973219,"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","ec2","ruby"],"created_at":"2024-11-13T14:49:07.740Z","updated_at":"2025-10-28T17:49:58.734Z","avatar_url":"https://github.com/nexxus-vi.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Simple EC2 Management Script**\n\nThis is a simple script to manage existing EC2 instances on AWS. \n\n**Requirements**\n\n`Ruby \u003e= 2.3` \u0026 `Bundler 2.2.32`\n\nYou have to set up your AWS credentials as described in the [official documentation](https://docs.aws.amazon.com/sdk-for-ruby/v3/developer-guide/setup-config.html)\n\nAlternatively you can initialize `@client` with `access_key_id`, `secret_access_key` and `region`:\n\n`@client = Aws::EC2::Client.new(access_key_id: 'ACCESSKEY', secret_access_key: 'SECRET', region: 'eu-north-1')`\n\n**Install gems**\n\n`gem install bundler:2.2.32`\n\n`bundle install`\n\n**Usage**\n\n```\n$ ruby ec2.rb -h\nSimple EC2 Management.\n\n  Usage:\n    ec2 list [--verbose] [-r | -s]\n    ec2 describe \u003cinstance_id\u003e\n    ec2 (start | stop | reboot | terminate) \u003cinstance_id\u003e [--dry-run]\n    ec2 -h | --help\n    ec2 --version\n\n  Options:\n    -h --help       Show this screen.\n    -r, --running   Show only running instances.\n    -s, --stopped   Show only stopped instances.\n    --dry-run       Checks whether you have the required permissions for the action, without actually making the request.\n    --verbose       Verbose output\n    -v, --version   Show version.\n```\n\n***Example usage:***\n\n```\n$ ruby ec2.rb list\nInstances: 5\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n#1\nInstance ID:               i-123456789\nName:                      instance_name\nState:                     STOPPED - Reason: Client.UserInitiatedShutdown\nPrivate IP address:        0.0.0.0\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n...\n\n$ ruby ec2.rb start i-123456789 --dry-run\nAttempting to start instance 'i-123456789' (this might take a few minutes)...\nCheck permissions to perform this operation: Request would have succeeded, but DryRun flag is set.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnexxus-vi%2Fsimple_ec2_management","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnexxus-vi%2Fsimple_ec2_management","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnexxus-vi%2Fsimple_ec2_management/lists"}