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. Configure your credentials.
    If ‘/etc/objectivefs.env’ already exists, you can rename it.

    $ sudo mount.objectivefs config -i
    Enter ObjectiveFS license: your objectivefs license key
    Enter Metadata Host [169.254.169.254]: <your metadata host ip>
    Enter Default Region (optional): <S3 or GCS region>

  3. You can run all ObjectiveFS commands as usual.

References

last updated by ObjectiveFS staff, November 18, 2017
ObjectiveFS is a shared file system for Linux and OS X that automatically scales and gives you scalable cloud storage. If you have questions or article idea suggestions, please email us at support@objectivefs.com