Mount EC2, Role with S3 Bucket 

1. Create EC2

2. Create a Bucket

3. Create a Role 

4. Attach Role with EC2 

5. Run Command 

         yum install automake fuse fuse-devel gcc-c++ git libcurl-devel libxml2-devel make openssl-devel 

6. Clone s3fs source code from git. 

        git clone https://github.com/s3fs-fuse/s3fs-fuse.git 

7. Now change to source code directory, and compile and install the code with the following commands:          1 cd s3fs-fuse

         2 ./autogen.sh 

        3 ./configure --prefix=/usr --with-openssl 

        4 make 

        5 sudo make install

 8. Which s3fs ------- check path 

9. s3fs -------check bucket

10. df -h -------check directory 

11. aws s3 ls -------check Bucket 

12. s3fs -o iam_role="S3_Role_Full_Access" ec2tos3bucket /mnt -----mount role with bucket 

 13. cd /mnt -----go to mount directory 

 14. aws s3 ls ec2tos3bucket -----check bucket object


                                                    **************Happy Learning****************

Comments

Popular posts from this blog