Amazon AWS SDK Uživatelský manuál Strana 19

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 26
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 18
sudo alternatives --set ruby /usr/bin/ruby1.9
4. Install additional development packages needed by the AWS SDK for Ruby:
sudo yum install -y gcc ruby-devel19 libxml2 libxml2-devel libxslt libxslt-
devel make
5. Install the AWS SDK for Ruby:
sudo gem install aws-sdk --no-ri --no-rdoc
The --no-ri and --no-rdoc options tell gem to not compile the Ruby documentation for the
aws-sdk gem.This will make the installation considerably faster.
6. Run the program:
ruby get_object.rb
If everything is set up correctly, the file should be copied to your EC2 instance just as it was to your local
machine when you were using credentials.This time, however, the credentials you used were not stored
in your program or on your EC2 instance. Instead, IAM managed the credentials for you!
Version v1.0.0
16
AWS SDK for Ruby Developer Guide
Updating the Sample Program to Use IAM Roles
Zobrazit stránku 18
1 2 ... 14 15 16 17 18 19 20 21 22 23 24 25 26

Komentáře k této Příručce

Žádné komentáře