Duplicate on both S3 and EC2 after mountingmounting an s3 bucket in ec2 and using transparently as a mnt pointVery slow connection between EC2 and S3. Is it normal?s3fs disable cacheHow can I mount an S3 bucket to an EC2 instance and write to it with PHP?mounted s3 bucket files not accessible through apacheCan inotifywait be used with a mounted S3 bucket?How to change the permission for a s3 bucket mounted folderAWS S3 bucket mount script not work on rebootAWS S3FS How toCannot make a directory through php inside mounted s3 bucket

Leveling up and Getting Items!

Is it possible to install Firefox on Ubuntu with no desktop enviroment?

How many possible starting positions are uniquely solvable for a nonogram puzzle?

Why is Skinner so awkward in Hot Fuzz?

Can I give my friend the sour dough "throw away" as a starter to their sourdough starter?

How can religions without a hell discourage evil-doing?

The last tree in the Universe

Do legislators hold the right of legislative initiative?

Reflecting Telescope Blind Spot?

Basic power tool set for Home repair and simple projects

Was the Lonely Mountain, where Smaug lived, a volcano?

Converting 3x7 to a 1x7. Is it possible with only existing parts?

Cant bend fingertip when finger is straight

What does the output current rating from an H-Bridge's datasheet really mean?

Someone who is granted access to information but not expected to read it

How could I create a situation in which a PC has to make a saving throw or be forced to pet a dog?

How do you translate “talk shit”?

Is it unethical to quit my job during company crisis?

How can this shape perfectly cover a cube?

What is the difference between state-based effects and effects on the stack?

I sent an angry e-mail to my interviewers about a conflict at my home institution. Could this affect my application?

Leveraging cash for buying car

How can Caller ID be faked?

For Saintsbury, which English novelists constituted the "great quartet of the mid-eighteenth century"?



Duplicate on both S3 and EC2 after mounting


mounting an s3 bucket in ec2 and using transparently as a mnt pointVery slow connection between EC2 and S3. Is it normal?s3fs disable cacheHow can I mount an S3 bucket to an EC2 instance and write to it with PHP?mounted s3 bucket files not accessible through apacheCan inotifywait be used with a mounted S3 bucket?How to change the permission for a s3 bucket mounted folderAWS S3 bucket mount script not work on rebootAWS S3FS How toCannot make a directory through php inside mounted s3 bucket






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








2















I created S3 bucket and mounted with ec2. When I upload a file to S3 bucket, that file is copied to ec2 mounted folder automatically. I wanted the file to be uploaded to S3 bucket only. As it copies to EC2 folder, it becomes redundant and doesn't fulfill our requirements. I installed S3fs and executed the following commands:



sudo s3fs my-s3-bucket /var/www/html/vqmod/xml/ -o passwd_file=/home/ubuntu/.passwd-s3fs,nonempty,retries=5,gid=33,uid=33,allow_other,url=https://s3.amazonaws.com,umask=0000


Am I doing any permission mistake? Thanks.



Comments:



John Rotenstein: "Why do you wish to mount the bucket on the EC2 instance? Amazon S3 is an object storage system and is not designed to be "mounted". While there are utilities that can do this (eg s3fs), it is not a recommended way to use Amazon S3."



I answered, "My client wants his eCommerce site's cache files to be generated in S3 storage. For this reason, cache folder of eCommerce site should be mounted the bucket."



John Rotenstein: "It will result in exactly the behaviour you describe."



Is there any alternative way to accomplish this requirement?










share|improve this question



















  • 1





    Why do you wish to mount the bucket on the EC2 instance? Amazon S3 is an object storage system and is not designed to be "mounted". While there are utilities that can do this (eg s3fs), it is not a recommended way to use Amazon S3.

    – John Rotenstein
    Mar 25 at 3:11











  • My client wants his eCommerce site's cache files to be generated in S3 storage. For this reason, cache folder of eCommerce site should be mounted the bucket.

    – Agilox
    Mar 25 at 5:32






  • 2





    Why do they want that? It will result in exactly the behaviour you describe.

    – John Rotenstein
    Mar 25 at 5:40











  • Is it possible without mounting?

    – Agilox
    Mar 25 at 8:23






  • 1





    Are you sure the files are duplicated? Mountfing s3fs the files are visible as local, but actually residing in s3. That is what did you want to achieve, isn't it not?

    – gusto2
    Mar 25 at 8:25


















2















I created S3 bucket and mounted with ec2. When I upload a file to S3 bucket, that file is copied to ec2 mounted folder automatically. I wanted the file to be uploaded to S3 bucket only. As it copies to EC2 folder, it becomes redundant and doesn't fulfill our requirements. I installed S3fs and executed the following commands:



sudo s3fs my-s3-bucket /var/www/html/vqmod/xml/ -o passwd_file=/home/ubuntu/.passwd-s3fs,nonempty,retries=5,gid=33,uid=33,allow_other,url=https://s3.amazonaws.com,umask=0000


Am I doing any permission mistake? Thanks.



Comments:



John Rotenstein: "Why do you wish to mount the bucket on the EC2 instance? Amazon S3 is an object storage system and is not designed to be "mounted". While there are utilities that can do this (eg s3fs), it is not a recommended way to use Amazon S3."



I answered, "My client wants his eCommerce site's cache files to be generated in S3 storage. For this reason, cache folder of eCommerce site should be mounted the bucket."



John Rotenstein: "It will result in exactly the behaviour you describe."



Is there any alternative way to accomplish this requirement?










share|improve this question



















  • 1





    Why do you wish to mount the bucket on the EC2 instance? Amazon S3 is an object storage system and is not designed to be "mounted". While there are utilities that can do this (eg s3fs), it is not a recommended way to use Amazon S3.

    – John Rotenstein
    Mar 25 at 3:11











  • My client wants his eCommerce site's cache files to be generated in S3 storage. For this reason, cache folder of eCommerce site should be mounted the bucket.

    – Agilox
    Mar 25 at 5:32






  • 2





    Why do they want that? It will result in exactly the behaviour you describe.

    – John Rotenstein
    Mar 25 at 5:40











  • Is it possible without mounting?

    – Agilox
    Mar 25 at 8:23






  • 1





    Are you sure the files are duplicated? Mountfing s3fs the files are visible as local, but actually residing in s3. That is what did you want to achieve, isn't it not?

    – gusto2
    Mar 25 at 8:25














2












2








2








I created S3 bucket and mounted with ec2. When I upload a file to S3 bucket, that file is copied to ec2 mounted folder automatically. I wanted the file to be uploaded to S3 bucket only. As it copies to EC2 folder, it becomes redundant and doesn't fulfill our requirements. I installed S3fs and executed the following commands:



sudo s3fs my-s3-bucket /var/www/html/vqmod/xml/ -o passwd_file=/home/ubuntu/.passwd-s3fs,nonempty,retries=5,gid=33,uid=33,allow_other,url=https://s3.amazonaws.com,umask=0000


Am I doing any permission mistake? Thanks.



Comments:



John Rotenstein: "Why do you wish to mount the bucket on the EC2 instance? Amazon S3 is an object storage system and is not designed to be "mounted". While there are utilities that can do this (eg s3fs), it is not a recommended way to use Amazon S3."



I answered, "My client wants his eCommerce site's cache files to be generated in S3 storage. For this reason, cache folder of eCommerce site should be mounted the bucket."



John Rotenstein: "It will result in exactly the behaviour you describe."



Is there any alternative way to accomplish this requirement?










share|improve this question
















I created S3 bucket and mounted with ec2. When I upload a file to S3 bucket, that file is copied to ec2 mounted folder automatically. I wanted the file to be uploaded to S3 bucket only. As it copies to EC2 folder, it becomes redundant and doesn't fulfill our requirements. I installed S3fs and executed the following commands:



sudo s3fs my-s3-bucket /var/www/html/vqmod/xml/ -o passwd_file=/home/ubuntu/.passwd-s3fs,nonempty,retries=5,gid=33,uid=33,allow_other,url=https://s3.amazonaws.com,umask=0000


Am I doing any permission mistake? Thanks.



Comments:



John Rotenstein: "Why do you wish to mount the bucket on the EC2 instance? Amazon S3 is an object storage system and is not designed to be "mounted". While there are utilities that can do this (eg s3fs), it is not a recommended way to use Amazon S3."



I answered, "My client wants his eCommerce site's cache files to be generated in S3 storage. For this reason, cache folder of eCommerce site should be mounted the bucket."



John Rotenstein: "It will result in exactly the behaviour you describe."



Is there any alternative way to accomplish this requirement?







amazon-s3 amazon-ec2 s3fs






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 26 at 6:11







Agilox

















asked Mar 25 at 2:45









AgiloxAgilox

956923




956923







  • 1





    Why do you wish to mount the bucket on the EC2 instance? Amazon S3 is an object storage system and is not designed to be "mounted". While there are utilities that can do this (eg s3fs), it is not a recommended way to use Amazon S3.

    – John Rotenstein
    Mar 25 at 3:11











  • My client wants his eCommerce site's cache files to be generated in S3 storage. For this reason, cache folder of eCommerce site should be mounted the bucket.

    – Agilox
    Mar 25 at 5:32






  • 2





    Why do they want that? It will result in exactly the behaviour you describe.

    – John Rotenstein
    Mar 25 at 5:40











  • Is it possible without mounting?

    – Agilox
    Mar 25 at 8:23






  • 1





    Are you sure the files are duplicated? Mountfing s3fs the files are visible as local, but actually residing in s3. That is what did you want to achieve, isn't it not?

    – gusto2
    Mar 25 at 8:25













  • 1





    Why do you wish to mount the bucket on the EC2 instance? Amazon S3 is an object storage system and is not designed to be "mounted". While there are utilities that can do this (eg s3fs), it is not a recommended way to use Amazon S3.

    – John Rotenstein
    Mar 25 at 3:11











  • My client wants his eCommerce site's cache files to be generated in S3 storage. For this reason, cache folder of eCommerce site should be mounted the bucket.

    – Agilox
    Mar 25 at 5:32






  • 2





    Why do they want that? It will result in exactly the behaviour you describe.

    – John Rotenstein
    Mar 25 at 5:40











  • Is it possible without mounting?

    – Agilox
    Mar 25 at 8:23






  • 1





    Are you sure the files are duplicated? Mountfing s3fs the files are visible as local, but actually residing in s3. That is what did you want to achieve, isn't it not?

    – gusto2
    Mar 25 at 8:25








1




1





Why do you wish to mount the bucket on the EC2 instance? Amazon S3 is an object storage system and is not designed to be "mounted". While there are utilities that can do this (eg s3fs), it is not a recommended way to use Amazon S3.

– John Rotenstein
Mar 25 at 3:11





Why do you wish to mount the bucket on the EC2 instance? Amazon S3 is an object storage system and is not designed to be "mounted". While there are utilities that can do this (eg s3fs), it is not a recommended way to use Amazon S3.

– John Rotenstein
Mar 25 at 3:11













My client wants his eCommerce site's cache files to be generated in S3 storage. For this reason, cache folder of eCommerce site should be mounted the bucket.

– Agilox
Mar 25 at 5:32





My client wants his eCommerce site's cache files to be generated in S3 storage. For this reason, cache folder of eCommerce site should be mounted the bucket.

– Agilox
Mar 25 at 5:32




2




2





Why do they want that? It will result in exactly the behaviour you describe.

– John Rotenstein
Mar 25 at 5:40





Why do they want that? It will result in exactly the behaviour you describe.

– John Rotenstein
Mar 25 at 5:40













Is it possible without mounting?

– Agilox
Mar 25 at 8:23





Is it possible without mounting?

– Agilox
Mar 25 at 8:23




1




1





Are you sure the files are duplicated? Mountfing s3fs the files are visible as local, but actually residing in s3. That is what did you want to achieve, isn't it not?

– gusto2
Mar 25 at 8:25






Are you sure the files are duplicated? Mountfing s3fs the files are visible as local, but actually residing in s3. That is what did you want to achieve, isn't it not?

– gusto2
Mar 25 at 8:25













1 Answer
1






active

oldest

votes


















0














File uploaded to s3 bucket are only visible in your s3fs mount path.
it does not take space on you fileSystem, when you open file then it downloads the content.
so in your case though they are visible on mounted path there are not on your system.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55330639%2fduplicate-on-both-s3-and-ec2-after-mounting%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    File uploaded to s3 bucket are only visible in your s3fs mount path.
    it does not take space on you fileSystem, when you open file then it downloads the content.
    so in your case though they are visible on mounted path there are not on your system.






    share|improve this answer



























      0














      File uploaded to s3 bucket are only visible in your s3fs mount path.
      it does not take space on you fileSystem, when you open file then it downloads the content.
      so in your case though they are visible on mounted path there are not on your system.






      share|improve this answer

























        0












        0








        0







        File uploaded to s3 bucket are only visible in your s3fs mount path.
        it does not take space on you fileSystem, when you open file then it downloads the content.
        so in your case though they are visible on mounted path there are not on your system.






        share|improve this answer













        File uploaded to s3 bucket are only visible in your s3fs mount path.
        it does not take space on you fileSystem, when you open file then it downloads the content.
        so in your case though they are visible on mounted path there are not on your system.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 18 at 7:03









        Manish KevreManish Kevre

        1




        1





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid …


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55330639%2fduplicate-on-both-s3-and-ec2-after-mounting%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

            155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

            Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?