AWS SDK for RubyDeveloper GuideVersion v1.0.0
test: <<: *developmentproduction: <<: *development 6. Create app/models/my_record.rb as follows:class MyRecord < AWS::Record::Base
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
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
• 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
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
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
"s3:List*" ], "Resource": "*" } ]}Note the name of the role that you create so that you can specif
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
require 'rubygems'require 'aws-sdk's3 = AWS::S3.new()bucket_name = 'text-content'obj_name = 'text-object.txt'd
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
AWS SDK for Ruby: Developer GuideCopyright © 2014 Amazon Web Services, Inc. and/or its affiliates. All rights reserved.All other trademarks not owned
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
config_file = File.join(File.dirname(__FILE__), "config.yml")AWS.config(YAML.load(File.read(config_file)))2. Create a new EC2 instance, sp
For information about running your Amazon EC2 instance, see Run an Amazon EC2 Instance (p. 20).Authorize Security Group IngressBy default, a new secur
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
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
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
Document HistoryThe following table describes the important changes since the last release of the AWS SDK for RubyDeveloper Guide.Last documentation u
AWS SDK for Ruby Developer Guide ... 1Getting Starte
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
• AWS CloudFormation• AWS Data Pipeline• AWS OpsWorks• Application Services• Amazon CloudSearch• Amazon Elastic Transcoder• Amazon SWF• Amazon SNS• Am
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
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
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
# 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