AWS SDK for RubyDeveloper GuideVersion v1.0.0
:credential_provider => AWS::Core::CredentialProviders::SharedCredentialFile Provider.new)Creating the provider object with the default construct
# S3.new will now use the credentials specified in AWS.configs3 = AWS::S3.newWarningIf you explicitly specify credentials, make sure that you do not a
Using Amazon Web Services withthe AWS SDK for RubyThis section provides information about how to program various Amazon Web Services using the SDKfor
Using IAM Roles for EC2 Instances to Manage YourCredentialsYou can use the AWS Management Console to create an IAM role and configure it with the perm
document = s3.buckets[bucket_name].objects[obj_name]File.open(obj_name, "w") do |f| f.write(document.read)endputs "'#{obj_name}&a
Create an IAM role using the AWS Management ConsoleThe first step is to create an IAM role that has the appropriate permissions.To create the IAM role
When you create your EC2 instance, you must specify a key pair and a security group for access.Youcan create and configure these while setting up your
When you are finished, click Launch Instance to launch your EC2 instance.Go to the EC2 Instances area of the AWS Management Console and view the launc
scp -i ruby-iam-ec2-ssh.pem get_object.rb \[email protected]:NoteIf you launched an EC2 machine image other than the A
Start an Amazon EC2 InstanceThis section demonstrates how to use the AWS SDK for Ruby to start an Amazon Elastic Compute Cloud(Amazon EC2) instance.To
AWS SDK for Ruby: Developer GuideCopyright © 2014 Amazon Web Services, Inc. and/or its affiliates. All rights reserved.The following are trademarks of
For information about authorizing security group ingress, see Authorize Amazon EC2 Security Group In-gress (p. 17).For information about creating a ke
If you authorize ingress for IP addresses that have already been authorized, the method returns an error.Whenever you use authorize_ingress or Securi
You must specify a public or privately-provided AMI. A large selection of Amazon-provided public AMIsis available for you to use. For a list of public
Additional ResourcesTopics• Home Page for AWS SDK for Ruby (p. 20)• SDK Reference Documentation (p. 20)• AWS Forums (p. 20)• AWS SDK for Ruby Samples
samples, you can quickly gain understanding of how to use the SDK for Ruby and implement typical AWSprogramming patterns in Ruby.Topics• Installing th
ls samplesNoteOn Windows, use the dir command instead.Set your AWS CredentialsBecause these are AWS SDK for Ruby samples, you will need to provide AWS
https://s3.amazonaws.com/my_test_bucket/test.png(press any key to delete the object)To use the AWS Object Relational Manager (ORM) in a Rails 3 applic
6. Create app/models/my_record.rb as follows:class MyRecord < AWS::Record::Base string_attr :name end 7. Create the SimpleDB domain:$ rails con
Document HistoryThe following table describes the important changes since the last release of the AWS SDK for RubyDeveloper Guide.Last documentation u
Table of ContentsWhat is the AWS SDK for Ruby? ...
What is the AWS SDK for Ruby?The AWS SDK for Ruby provides a Ruby API for AWS infrastructure services. Using the SDK, you canbuild applications on top
Viewing the Revision History for the SDK forRubyThe AWS SDK for Ruby is regularly updated to support new services and new service features. To seewhat
Getting Started with the AWS SDKfor RubyThis section provides information about how to install, set up, and use the AWS SDK for Ruby. If youhave never
NoteTo create access keys, you must have permissions to perform the required IAM actions. Formore information, see Granting IAM User Permission to Man
The recommended approach for managing credentials is to store them in one of the following ways andthen load them into your application.This avoids pu
will use to access a service when you initialize a new service client. This topic describes how to specifyAWS credentials for SDK for Ruby application
Comments to this Manuals