• Stars
    star
    451
  • Rank 96,968 (Top 2 %)
  • Language
    Ruby
  • License
    MIT License
  • Created over 15 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

RightScale Amazon Web Services Ruby Gems
= RightScale Amazon Web Services Ruby Gems

Published by RightScale, Inc. under the MIT License.
For information about RightScale, see http://www.rightscale.com

== THE GEM IS NO LONGER MAINTAINED

We recommend you use https://github.com/rightscale/right_aws_api instead.

== DESCRIPTION:

The RightScale AWS gems have been designed to provide a robust, fast, and secure interface to Amazon EC2, EBS, S3, SQS, SDB, and CloudFront. 
These gems have been used in production by RightScale since late 2006 and are being maintained to track enhancements made by Amazon. 
The RightScale AWS gems comprise:

- RightAws::Ec2 -- interface to Amazon EC2 (Elastic Compute Cloud), VPC (Virtual Private Cloud) and the associated EBS (Elastic Block Store)
- RightAws::S3 and RightAws::S3Interface -- interface to Amazon S3 (Simple Storage Service)
- RightAws::Sqs and RightAws::SqsInterface -- interface to first-generation Amazon SQS (Simple Queue Service)
- RightAws::SqsGen2 and RightAws::SqsGen2Interface -- interface to second-generation Amazon SQS (Simple Queue Service)
- RightAws::SdbInterface and RightAws::ActiveSdb -- interface to Amazon SDB (SimpleDB)
- RightAws::AcfInterface -- interface to Amazon CloudFront, a content distribution service
- RightAws::AsInterface  -- interface to Amazon Auto Scaling
- RightAws::AcwInterface -- interface to Amazon Cloud Watch
- RightAws::ElbInterface -- interface to Amazon Elastic Load Balancer
- RightAws::RdsInterface -- interface to Amazon RDS instances

== FEATURES:

- Full programmmatic access to EC2, EBS, S3, SQS, SDB, CloudFront, AS, ACW, ELB and RDS.
- Complete error handling: all operations check for errors and report complete
  error information by raising an AwsError.
- Persistent HTTP connections with robust network-level retry layer using
  RightHttpConnection).  This includes socket timeouts and retries.
- Robust HTTP-level retry layer.  Certain (user-adjustable) HTTP errors returned
  by Amazon's services are classified as temporary errors.
  These errors are automaticallly retried using exponentially increasing intervals.
  The number of retries is user-configurable.
- Fast REXML-based parsing of responses (as fast as a pure Ruby solution allows).
- Uses libxml (if available) for faster response parsing. 
- Support for large S3 list operations.  Buckets and key subfolders containing
  many (> 1000) keys are listed in entirety.  Operations based on list (like
  bucket clear) work on arbitrary numbers of keys.
- Support for streaming GETs from S3, and streaming PUTs to S3 if the data source is a file.
- Support for single-threaded usage, multithreaded usage, as well as usage with multiple
  AWS accounts.
- Support for both first- and second-generation SQS (API versions 2007-05-01
  and 2008-01-01).  These versions of SQS are not compatible.
- Support for signature versions 0 and 1 on SQS, SDB, and EC2.
- Interoperability with any cloud running Eucalyptus (http://eucalyptus.cs.ucsb.edu)
- Test suite (requires AWS account to do "live" testing).

== THREADING:

All RightScale AWS interfaces offer two threading options:
1. Use a single persistent HTTP connection per process.
2. Use a persistent HTTP connection per Ruby thread.
 
Either way, it doesn't matter how many (for example) RightAws::S3 objects you create,
they all use the same per-program or per-thread
connection. The purpose of sharing the connection is to keep a single
persistent HTTP connection open to avoid paying connection
overhead on every request. However, if you have multiple concurrent
threads, you may want or need an HTTP connection per thread to enable
concurrent requests to AWS. The way this plays out in practice is:
1. If you have a non-multithreaded Ruby program, use the non-multithreaded setting.
2. If you have a multi-threaded Ruby program, use the multithreaded setting to enable
   concurrent requests to S3 (or SQS, or SDB, or EC2).
3. For running under Mongrel/Rails, use the non-multithreaded setting even though
   mongrel is multithreaded.  This is because only one Rails handler is invoked at
   time (i.e. it acts like a single-threaded program)

Note that due to limitations in the I/O of the Ruby interpreter you
may not get the degree of parallelism you may expect with the multi-threaded setting.

== GETTING STARTED:

* For EC2 read RightAws::Ec2 and consult the Amazon EC2 API documentation at
  http://developer.amazonwebservices.com/connect/kbcategory.jspa?categoryID=87
* For S3 read RightAws::S3 and consult the Amazon S3 API documentation at
  http://developer.amazonwebservices.com/connect/kbcategory.jspa?categoryID=48
* For first generation SQS read RightAws::Sqs and consult the Amazon SQS API documentation at
  http://developer.amazonwebservices.com/connect/kbcategory.jspa?categoryID=31
* For second generation SQS read RightAws::SqsGen2, RightAws::SqsGen2Interface, and consult the Amazon SQS API documentation at
  http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1214&categoryID=31 

  Amazon's Migration Guide for moving from first to second generation SQS is
  avalable at:
  http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1148
* For SDB read RightAws::SdbInterface, RightAws::ActiveSdb, and consult the Amazon SDB API documentation at
  http://developer.amazonwebservices.com/connect/kbcategory.jspa?categoryID=141
* For CloudFront (ACF) read RightAws::AcfInterface and consult the Amazon CloudFront API documentation at 
  http://developer.amazonwebservices.com/connect/kbcategory.jspa?categoryID=213

== KNOWN ISSUES:

- 7/08: A user has reported that uploads of large files on Windows may be broken on some
  Win platforms due to a buggy File.lstat.size.  Use the following monkey-patch at your own risk, 
  as it has been proven to break Rails 2.0 on Windows:

    require 'win32/file'
    class File
      def lstat
        self.stat
      end
    end


- Attempting to use the Gibberish plugin (used by the Beast forum app) 
  will break right_aws as well as lots of other code.  Gibberish
  changes the semantics of core Ruby (specifically, the String class) and thus presents a reliability
  problem for most Ruby programs.

- 2/11/08: If you use RightAws in conjunction with attachment_fu, the
  right_aws gem must be included (using the require statement) AFTER
  attachment_fu.  If right_aws is loaded before attachment_fu, you'll
  encounter errors similar to:

  s3.amazonaws.com temporarily unavailable: (wrong number of arguments (5 for 4))

  or

  'incompatible Net::HTTP monkey-patch'

  This is due to a conflict between the right_http_connection gem and another
  gem required by attachment_fu.

- 8/07: Amazon has changed the semantics of the SQS service.  A
  new queue may not be created within 60 seconds of the destruction of any
  older queue with the same name.  Certain methods of RightAws::Sqs and
  RightAws::SqsInterface will fail with the message:
  "AWS.SimpleQueueService.QueueDeletedRecently: You must wait 60 seconds after deleting a queue before you can create another with the same name."
  
== REQUIREMENTS:

RightAws requires REXML and the right_http_connection gem.
If libxml and its Ruby bindings (distributed in the libxml-ruby gem) are
present, RightAws can be configured to use them:
  RightAws::RightAWSParser.xml_lib = 'libxml'
Any error with the libxml installation will result in RightAws failing-safe to
REXML parsing.

== INSTALL:

sudo gem install right_aws

== LICENSE:

Copyright (c) 2007-2013 RightScale, Inc.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

wstunnel

Web-sockets tunnel for HTTP requests: facilitates requests to an HTTP server sitting behind a firewall
Go
220
star
2

cookbooks_public

Ruby
78
star
3

rightscale_cookbooks

Ruby
76
star
4

right_link

RightLink: server agent for RightScale
Ruby
54
star
5

scheduled_job

A thin flexible interface that enables you to define recurring jobs using DelayedJob
Ruby
44
star
6

cookbooks_public_windows

RightScale cookbooks used on Windows
Ruby
40
star
7

policy_templates

Flexera CMP built-in Policy Templates to provide effortless governance via automation.
Ruby
40
star
8

right_http_connection

Ruby
31
star
9

right_api_client

Ruby
30
star
10

rsc

Generic RightScale API client Go package and command line tool
Go
27
star
11

behaveJS

Ruby
16
star
12

right_popen

Asynchronous multiplatform popen implementation relying on EventMachine
Ruby
16
star
13

rightimage

Ruby
15
star
14

persist

Simple persistence or replay log for golang
Go
13
star
15

flexera-plugins

Library of open source Flexera plugins
Ruby
13
star
16

right_aws_api

Ruby gem to access many AWS services
Ruby
11
star
17

cookbooks_opensource

Ruby
11
star
18

right_st

RightScale ServerTemplate and RightScript tool
Go
11
star
19

cmdb

Command-line tool for configuration management databases
Ruby
10
star
20

right_scraper

Download and incrementally update git, SVN and tar repositories
Ruby
9
star
21

design-kit

A branding guide for RightScale products
JavaScript
8
star
22

right_chimp

The chimp automation tool, created for RightScale operations
Ruby
7
star
23

go_middleware

A set of common Go web application middleware
Go
7
star
24

go-boilerplate

Starting point for a Golang project
Go
7
star
25

sql_partitioner

Ruby
6
star
26

right_agent

Fundation code for RightNet agents
Ruby
6
star
27

rs-premium_free_trial

Ruby
6
star
28

right_api_cmd

CLI app for RightScale RightAPI 1.5 & 1.6 with capability to extract response fields.
Go
5
star
29

mock_em

Gem to mock EventMachine for testing
Ruby
5
star
30

process_watcher

Cross platform process watching solution
Ruby
5
star
31

right_amqp

RightScale AMQP client rubygem
Ruby
5
star
32

cbi-oi-kubecost-exporter

Go
5
star
33

rsssh

RightScale Secure Shell
Rust
4
star
34

rightlink_scripts

RightScripts for RightScale's RightLink10 (aka RightLinkLite) agent
Shell
4
star
35

sca-codeinsight-reports-project-vulnerabilities

Code Insight report showing project vulnerabilities
Python
4
star
36

collectd-container

Run collectd in a container to monitor the host, support CoreOS
Shell
4
star
37

terraform-provider-rightscale

[ Archived ] A Terraform provider that leverages the RightScale platform - Moved here: https://github.com/terraform-providers/terraform-provider-rightscale
Go
4
star
38

examples

3
star
39

sca-codeinsight-utilities-inventory-search

Code Insight v7 Inventory Keyword Search Script
Python
3
star
40

sca-codeinsight-reports-claim-files

Report to allow users to show files they can claim based on evidience
Python
3
star
41

aws-control-tower

Flexera Optima Integration with AWS Control Tower
Ruby
2
star
42

public_resources

Set of cross-product code samples, snippets and other helpful resources.
Ruby
2
star
43

ldap-group-sync

Script used to synchronize groups between LDAP and RightScale Governance
PowerShell
2
star
44

bulk-rightlink10-enablement

Install RightLink 10 on a group of servers. Uses ssh keys or a password to access servers.
Shell
2
star
45

sca-codeinsight-restapi-example

Example script utilizing the Code Insight REST API interface
Python
2
star
46

sca-codeinsight-reports-cyclonedx

Python
2
star
47

rackspace_cookbooks

Python
2
star
48

sca-codeinsight-reports-third-party-notices

The sca-codeinsight-reports-third-party-notices repository is a report for Revenera's Code Insight product. This report allows a user to generate a Third Party Notices report to satisfy the attribution requirement of open source licenses. This report will automatically include licenses with attribution data where available.
Python
2
star
49

sca-codeinsight-reports-spdx

Code Insight SPDX report
Python
2
star
50

gojiutil

Helpers for the golang goji web framework
Go
2
star
51

cassandra

Ruby
2
star
52

croner

A simple cron implementation with an HTTP status interface
Go
2
star
53

equinix-public

Ruby
2
star
54

policy_sdk

Go
2
star
55

right_develop

Developer tools
Ruby
1
star
56

ui-charts

TypeScript
1
star
57

sca-codeinsight-reports-project-inventory-license-audit

Report to flag when restricted license are modified for an inventory item
Python
1
star
58

libnss-rightscale

Unix Name Service Switch (NSS) module that pulls passwd/shadow information from RightLink system management agent.
C
1
star
59

cbi-oi-mongodb-atlas

MongoDB Atlas CBI Upload
Ruby
1
star
60

RightGridWindowsImplementation

This is a purely c# implementation of the rightgrid features. This is for windows users and in .net 4.0
C#
1
star
61

sca-codeinsight-reports-project-sbom

Python
1
star
62

netflix-tools

1
star
63

aws-xray-daemon

Dockerfile for the AWS X-Ray daemon.
1
star
64

self-service-assets

CMP Self Service Assets
Ruby
1
star
65

aad_oauth

Command line tool that generates Oauth tokens from Azure Active Directory
Go
1
star
66

rightscale-docs

New github org, same rightscale Docs
Slim
1
star
67

scfld-rs-app

JavaScript
1
star
68

rightscale_upload

Ruby
1
star
69

self-service-plugins

Self-service namespaces
Ruby
1
star
70

mysql

Version 2.8.2 of mysql gem
C
1
star
71

sca-codeinsight-workflow-v6

Script that allows users to correlate inventory items in Code Insight v7 with requests in Code Insight v6
Python
1
star
72

sca-codeinsight-reports-project-vulnerability-exclusions

An Code Insight report to display the vulnerabilities that were excluded for each inventory as well as the reason why it was excluded
Python
1
star
73

sca-codeinsight-restapi-python

A common repo containing python based RESTAPI calls for Code Insight
Python
1
star