Code Snippet

Just another Code Snippet site

AWS: How to Mount S3 Bucket on EC2 Linux Instance Using IAM Role

We can mount an S3 bucket onto an AWS instance as a file system known as S3fs. It is a FUSE filesystem application backed by amazon web…

Source: AWS: How to Mount S3 Bucket on EC2 Linux Instance Using IAM Role | by Shashikant Shashi | Tensult Blogs | Medium

, , ,


2 thoughts on “AWS: How to Mount S3 Bucket on EC2 Linux Instance Using IAM Role

  • Olivier says:

    Mount S3 bucket using s3fs:

    Add Access key to ~/.passwd-s3fs (chmod 0600)

    <ACCESS_KEY_ID>:<SECRET_ACCESS_KEY>
    

    Mount bucket:

    s3fs <BUCKET_NAME> <MOUNT_POINT>
    

    For debug add “-d” (log into /var/log/messages)
    To specify a region add “-o

Leave a Reply to Olivier Cancel reply

Your email address will not be published. Required fields are marked *