Amazon AWS SDK User Manual

Browse online or download User Manual for Software Amazon AWS SDK. AWS SDK for Ruby Developer Guide

  • Download
  • Add to my manuals
  • Print

Summary of Contents

Page 1 - AWS SDK for Ruby

AWS SDK for RubyDeveloper GuideVersion v1.0.0

Page 2

:credential_provider => AWS::Core::CredentialProviders::SharedCredentialFile Provider.new)Creating the provider object with the default construct

Page 3 - Table of Contents

# 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

Page 4 - What is the AWS SDK for Ruby?

Using Amazon Web Services withthe AWS SDK for RubyThis section provides information about how to program various Amazon Web Services using the SDKfor

Page 5 - About Amazon Web Services

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

Page 6 - To sign up for an AWS account

document = s3.buckets[bucket_name].objects[obj_name]File.open(obj_name, "w") do |f| f.write(document.read)endputs "'#{obj_name}&a

Page 7 - SDK for Ruby

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

Page 8 - Applications

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

Page 9 - Using Default Credentials

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

Page 10

scp -i ruby-iam-ec2-ssh.pem get_object.rb \[email protected]:NoteIf you launched an EC2 machine image other than the A

Page 11 - Where to Go from Here

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

Page 12 - Version v1.0.0

AWS SDK for Ruby: Developer GuideCopyright © 2014 Amazon Web Services, Inc. and/or its affiliates. All rights reserved.The following are trademarks of

Page 13 - Credentials

For information about authorizing security group ingress, see Authorize Amazon EC2 Security Group In-gress (p. 17).For information about creating a ke

Page 14 - To test the program locally

If you authorize ingress for IP addresses that have already been authorized, the method returns an error.Whenever you use authorize_ingress or Securi

Page 15

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

Page 16

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

Page 17

samples, you can quickly gain understanding of how to use the SDK for Ruby and implement typical AWSprogramming patterns in Ruby.Topics• Installing th

Page 18 - To run the program

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

Page 19 - Start an Amazon EC2 Instance

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

Page 20 - Create a Security Group

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

Page 21 - Create a Key Pair

Document HistoryThe following table describes the important changes since the last release of the AWS SDK for RubyDeveloper Guide.Last documentation u

Page 22 - Related Resources

Table of ContentsWhat is the AWS SDK for Ruby? ...

Page 23 - Additional Resources

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

Page 24 - Installing the samples

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

Page 25 - Run the Samples

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

Page 26

NoteTo create access keys, you must have permissions to perform the required IAM actions. Formore information, see Granting IAM User Permission to Man

Page 27

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

Page 28 - Document History

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

No comments