Amazon AWS SDK Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Logiciel Amazon AWS SDK. AWS SDK for Ruby Developer Guide Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer

Résumé du contenu

Page 1 - AWS SDK for Ruby

AWS SDK for RubyDeveloper GuideVersion v1.0.0

Page 2

test: <<: *developmentproduction: <<: *development 6. Create app/models/my_record.rb as follows:class MyRecord < AWS::Record::Base

Page 3

Where Do I Go from Here?The SDK reference documentation provides information about both the AWS Ruby gem and AWS Railsintegration gem.The Additional R

Page 4 - AWS SDK for Ruby Developer

Using IAM Roles for Amazon EC2Instances with the AWS SDK forRubyNoteFor in-depth information about using IAM roles for EC2 instances, see Roles in Usi

Page 5 - About Amazon Web Services

• Walkthrough: Using IAM Roles to Retrieve an Amazon S3 Object from an EC2 Instance (p. 11)Using IAM Roles for EC2 Instances to ManageYour Credentials

Page 6 - Up Now button

NoteAWS CloudFormation does not support calling its API with an IAM role.You must call the AWSCloudFormation API as a regular IAM user.Walkthrough: Us

Page 7 - Getting Started

Updating the Sample Program to Use IAM RolesNext, we'll update the program to run within an EC2 instance using IAM roles.To do this, we'll t

Page 8 - Install the AWS SDK for Ruby

"s3:List*" ], "Resource": "*" } ]}Note the name of the role that you create so that you can specif

Page 9

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

require 'rubygems'require 'aws-sdk's3 = AWS::S3.new()bucket_name = 'text-content'obj_name = 'text-object.txt'd

Page 11 - Where Do I Go from Here?

sudo alternatives --set ruby /usr/bin/ruby1.94. Install additional development packages needed by the AWS SDK for Ruby:sudo yum install -y gcc ruby-de

Page 12 - Version v1.0.0

AWS SDK for Ruby: Developer GuideCopyright © 2014 Amazon Web Services, Inc. and/or its affiliates. All rights reserved.All other trademarks not owned

Page 13 - Your Credentials

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 14 - To test the program locally

config_file = File.join(File.dirname(__FILE__), "config.yml")AWS.config(YAML.load(File.read(config_file)))2. Create a new EC2 instance, sp

Page 15

For information about running your Amazon EC2 instance, see Run an Amazon EC2 Instance (p. 20).Authorize Security Group IngressBy default, a new secur

Page 16

Before logging onto an Amazon EC2 instance, you must create the instance and ensure that it is running.For information about how to run an Amazon EC2

Page 17

If you did not authorize ingress for the security group that your instance belongs to, you will not be ableto connect to your instance. By default, Am

Page 18 - To run the program

Additional ResourcesHome Page for AWS SDK for RubyFor more information about the AWS SDK for Ruby, go to the homepage for the SDK athttp://amazonaws.c

Page 19

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

Page 20 - Start an Amazon EC2 Instance

AWS SDK for Ruby Developer Guide ... 1Getting Starte

Page 21 - Create a Security Group

AWS SDK for Ruby DeveloperGuideThe AWS SDK for Ruby provides a Ruby API for AWS infrastructure services. Using the SDK, you canbuild applications on t

Page 22 - Create a Key Pair

• AWS CloudFormation• AWS Data Pipeline• AWS OpsWorks• Application Services• Amazon CloudSearch• Amazon Elastic Transcoder• Amazon SWF• Amazon SNS• Am

Page 23 - Run an Amazon EC2 Instance

below a certain level of usage. For more information about AWS costs and the Free Tier, go to Test-DrivingAWS in the Free Usage Tier.To obtain an AWS

Page 24 - Related Resources

Getting StartedTo get started with the AWS SDK for Ruby, you need to set up the following:• AWS account and credentials• Ruby environment• AWS SDK for

Page 25 - Additional Resources

3. Select your IAM user name.4. Click User Actions, and then click Manage Access Keys.5. Click Create Access Key.Your keys will look something like th

Page 26 - Document History

# Fill in your AWS Access Key ID and Secret Access Key# http://amazonaws.cn/security-credentialsaccess_key_id: <REPLACE_WITH_ACCESS_KEY_ID>secre

Commentaires sur ces manuels

Pas de commentaire