ドキュメント

How To Use EC2 IAM Roles Instead Of Keys

ObjectiveFS supports IAM roles on EC2 instances, so you can use IAM roles instead of AWS keys to run your ObjectiveFS filesystem.

  1. Attach an IAM role to your EC2 instance.

    AWS EC2 Management Console
    → Select the EC2 Instance
    → Actions
    → Instance Settings
    → Attach/Replace IAM role
    → Add the appropriate IAM role on the EC2 instance
    
  2. Create a file called /etc/objectivefs.env/AWS_METADATA_HOST with the content as 169.254.169.254. You can also remove the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY files in /etc/objectivefs.env.

    $ echo 169.254.169.254 > /etc/objectivefs.env/AWS_METADATA_HOST
    $ rm /etc/objectivefs.env/AWS_SECRET_ACCESS_KEY
    $ rm /etc/objectivefs.env/AWS_ACCESS_KEY_ID
    $ ls /etc/objectivefs.env/
    AWS_METADATA_HOST   OBJECTIVEFS_LICENSE
    
  3. You can run all Objectivefs commands as usual.

References

by ObjectiveFS staff, March 8, 2017
ObjectiveFS is a shared file system for OS X and Linux that automatically scales and gives you scalable cloud storage. If you have questions or article idea suggestions, please email us at お問い合わせはこちら

取り扱いが容易で、しかも安全な S3 ファイルシステム

14日間無料でお試しください