{"id":18837376,"url":"https://github.com/clarenceb/aws-commandline-labs","last_synced_at":"2026-05-18T02:05:25.715Z","repository":{"id":4303466,"uuid":"5435419","full_name":"clarenceb/aws-commandline-labs","owner":"clarenceb","description":"Some exercises to try out using AWS from the commandline.","archived":false,"fork":false,"pushed_at":"2012-08-17T01:29:10.000Z","size":116,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-30T08:41:27.813Z","etag":null,"topics":["aws","commandline","labs"],"latest_commit_sha":null,"homepage":null,"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/clarenceb.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}},"created_at":"2012-08-16T06:19:46.000Z","updated_at":"2014-02-12T07:09:14.000Z","dependencies_parsed_at":"2022-08-29T19:41:50.684Z","dependency_job_id":null,"html_url":"https://github.com/clarenceb/aws-commandline-labs","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/clarenceb%2Faws-commandline-labs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarenceb%2Faws-commandline-labs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarenceb%2Faws-commandline-labs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarenceb%2Faws-commandline-labs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clarenceb","download_url":"https://codeload.github.com/clarenceb/aws-commandline-labs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239774324,"owners_count":19694700,"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","commandline","labs"],"created_at":"2024-11-08T02:34:58.907Z","updated_at":"2026-05-18T02:05:25.614Z","avatar_url":"https://github.com/clarenceb.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Commandline examples for AWS learning.\n--------------------------------------\n\n### Overview\n\nThis repository consists of a bunch of command line scripts for working with AWS.\nThey make use of the official Ruby AWS SDK and the RightScale (right\\_aws) gem\n(used for CloudFront access, since the Ruby AWS SDK does not appear to support it yet).\n\nThe scripts are not intended to be \"DRY\" and not use abstraction over the AWS Ruby gems\nso that you can learn how things work closer to the REST API level\n\nThere are higher level Ruby gems such as [Fog](https://github.com/fog/fog/) and\n[Knife EC2](https://github.com/opscode/knife-ec2/) which are worth looking at\nif you do not want to abstract the details of working with AWS resources or\neven working across different clouds (in [Fog's](http://fog.io/1.5.0/index.html) case).\n\n\nThis is still work-in-progress and may be continued or abandoned depending on how\nuseful I feel this stuff becomes.  It's currently a repo for me to practices access\nthe AWS REST APIs via the command line.\n\n**Notes:**  There are also some use Java based API tools provided by Amazon which are\n        probably easier to work with from the command line without requiring the\n        use of Ruby:\n\n- [Amazon EC2 API Tools](http://aws.amazon.com/developertools/351/)\n- [Amazon CloudWatch Command Line Tool](http://aws.amazon.com/developertools/2534)\n- [Auto Scaling Command Line Tool](http://aws.amazon.com/developertools/2535)\n\n### Pre-requisities:\n- Ruby 1.8.7+\n- Ruby Gems 1.3.7+\n- Bundler 1.0.x+\n\nYou will need Ruby/RubyGems installed on your system.  You can either\nuse the system default, installed via a package or use RVM to manage\nyour Rubies in user space.\n\nIf you don't have Bundler gem installed then the aws.sh script will\nattempt to install it for you.  However, If you aren't using a user managed\nRuby then you may need to run aws.sh with 'sudo' in order to install\nBundler (probably best to just make sure you install Bundler first).\n\n**Enter:**\n\n    [sudo] gem install bundler\n\n- AWS account\n\nYou will need to sign up for an AWS account (with a valid credit card).\nNote that its up to you to check and clean up any resources via the AWS Management Console\nafter running these exercises to ensure you don't have any resources left over.\n\nNote down your 'Access Key ID' and 'Secret Access Key' from the Security Credetials tab after you log into the AWS Console. Put these in a file called 'aws-credentials.txt' (see the aws-credentials-template.txt file).\n\n**Command(s) usage:**\n\n    ./aws.sh \u003ccommand_name\u003e [\u003cargs\u003e]\n\n**e.g.**\n\n    ./aws.sh s3-create-static-website.rb my-bucket\n\n### Getting Started\n\nHave a look at the **Exercises.txt** file as a starting point for some exercises which have a kind of sequence to them.  Otherwise, you can just execute the individual commands and modify them to understand what's possible.  Have a look at the [Ruby AWS SDK API docs](http://docs.amazonwebservices.com/AWSRubySDK/latest/frames.html) to guide your learning.\n\nCurrently, these scripts assume a Linux or MacOS X environment but I might add some Windows scripts as well in the future.\n\n### Further information:\n\naws-sdk ruby gem (from [Amazon Web Services](http://aws.amazon.com/)):\n\n- [http://aws.amazon.com/sdkforruby/](http://aws.amazon.com/sdkforruby/)\n- [http://docs.amazonwebservices.com/AWSRubySDK/latest/frames.html](http://docs.amazonwebservices.com/AWSRubySDK/latest/frames.html)\n\nright\\_aws ruby gem (from [RightScale](http://www.rightscale.com/)):\n\n- [http://rightscale.rubyforge.org/right\\_aws\\_gem\\_doc/](http://rightscale.rubyforge.org/right_aws_gem_doc/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarenceb%2Faws-commandline-labs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclarenceb%2Faws-commandline-labs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarenceb%2Faws-commandline-labs/lists"}