Forum arrow_forward_ios Softwares

Questions By
Mritunjoy Mushahary
card_giftcard ₹0

question_answer Can I make the folder inside s3 bucket undelete able ?

Can I make the folder inside s3 bucket undelete able ?

Meaning can I lock some folder .. so that if by mistake I delete ..it is safe? .

And does s3 bucket has backup if I mistakely delete something?

16-05-2020, Total 1 Ans Best Answered , 21 views


check_circle_outline BEST ANSWER

Please note that in Amazon S3, buckets and objects are the primary resources, and objects are stored in buckets. Amazon S3 has a flat structure instead of a hierarchy like you would see in a file system. However, for organizational simplicity, the Amazon S3 console supports the folder concept as a means of grouping objects. Amazon S3 does this by using a shared name prefix for objects (that is, objects have names that begin with a common string). Object names are also referred to as key names. So, there is no concept of “folder” in S3 and it is just a prefix to the full path of the object. More information on how objects and prefix structure work in S3 is mentioned in the following documentation below:

https://docs.aws.amazon.com/AmazonS3/latest/user-guide/using-folders.html

So, you would be able to lock only the objects in S3 using S3 object feature to prevent anyone from deleting the object. With S3 Object Lock feature you can specify how long an object remains locked, the retention period will specify the length, or you can use legal hold for indefinitely. You can find more information on Object Locking below. If you want to lock your objects in governance mode, then users can't overwrite, or delete an object version, or alter its lock settings unless they have special permissions. Also, the other mode, that is the compliance mode ensures that a protected object version can't be overwritten or deleted by any user, including the root user in your AWS account, so please be careful when using this mode.

- https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html 

- https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock-overview.html 

- https://docs.aws.amazon.com/AmazonS3/latest/user-guide/object-lock.html

Also please note that S3 by default does not backup your resources if you delete something accidentally. However, to prevent accidental deletion, you could limit access to your S3 buckets using strict S3 bucket policies, enabling versioning, configuring Cross Region Replication, and using MFA delete (users need MFA to delete objects).

That is, enabling versioning on the bucket that needs data protection is a great way to ensure your files have multiple copies in case of being overwritten or being deleted [1]. Another option you can take a look at is replication, this will replicate your bucket to another bucket in the same or even a different region. You can find some guides on replication here [2] [3]. Please be aware that replication will not replicate current files in your bucket and only newer files. You can force replication on current objects via this guide [4].

Another option I could suggest is using MFA Delete, this requires you to install the AWS CLI [5] and then configure it [6]. Once you have done that, you can then enable MFA Delete by following the guide here [7]. MFA Delete will then require multi faction authentication before anything can be deleted.

It is also possible to restrict the ability to delete objects from your bucket, and the bucket itself, using a bucket policy. You could have a policy that gives one user the ability to delete objects when necessary, and grant only this user access to S3 delete permissions. For example:

{ "Version": "2012-10-17", "Statement": [ { "Sid": "UserDeleteOnly", "Effect": "Deny", "Principal": "*", "Action": "s3:Delete*", "Resource": [ "arn:aws:s3:::examplebucket", "arn:aws:s3:::examplebucket/*" ], "Condition": { "StringNotLike": { "aws:userId": [ "AROAEXAMPLEID:*" ] } } } ] }

Mritunjoy Mushahary
16-05-2020

more_horiz Other Answers

Please lock LOGIN to Answer

announcement Recently Asked

question_answer
What were the documents required for PMEGP Loan?
Ans(1) ₹0 check_circle_outline
question_answer
PMEGP Loan Guide Lines.
Ans(1) ₹0 check_circle_outline
question_answer
Which is the right time to get EDP Training?
Ans(1) ₹0 check_circle_outline
question_answer
EDP Training Center in Kokrajhar area.
Ans(1) ₹0 check_circle_outline
question_answer
question_answer


announcement Related Ques

question_answer
Which is the right time to get EDP Training?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
How much is the Margin Money of PMEGP Loan fo ST?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
I want to register SENDER ID for my SNS SMS, on AWS.
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
What were the documents required for PMEGP Loan?
Ans(1) ₹0 check_circle_outline
question_answer
html css center horizontal list, menu system
Ans(2) ₹0 check_circle_outline
question_answer
How to get the nested Array Data using PHP?
Ans(1) ₹0 check_circle_outline
question_answer
Is RazorPay Really simple and esay to ues?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
convert numbers into words in php
Ans(2) ₹0 check_circle_outline
question_answer
question_answer
What is zend2?
Ans(0) ₹0
question_answer
question_answer
How much Amazon Cloud Hosting charges?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
.htaccess not working on my site .. what to do?
Ans(1) ₹0 check_circle_outline
question_answer
PHP SDK - Delete Object not working on s3 - error \
Ans(1) ₹0 check_circle_outline
question_answer
Multiple database vs single database on mysql?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
Need official website links for PMEGP Loan.
Ans(1) ₹0 check_circle_outline
question_answer
error timezone php or set time php timezone
Ans(1) ₹0 check_circle_outline
question_answer
PMEGP Loan Guide Lines.
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
php count variable values separated with comma
Ans(2) ₹0 check_circle_outline
question_answer
How to properly get Pre Signed URL from s3 Bucket?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
Is this PMEGP Loan works Offline also?
Ans(1) ₹0 check_circle_outline
question_answer
How to enable email functions on php?
Ans(1) ₹0 check_circle_outline
question_answer
Linux repeated Keyword problems.. how to solve it?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
Need codes to send SMS using AWS SNS in PHP.
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
How to integrate RazorPay with my website using PHP?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
Which is the best website to learn MongoDB online?
Ans(3) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
check if the radio input is checked using javascript
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
multiple aws s3 bucket vs one aws s3 bucket?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
How to write ourl url for SEO on href attribute
Ans(2) ₹0 check_circle_outline
question_answer
question_answer
What is SKU in shiprocket? From where I can get it?
Ans(1) ₹0 check_circle_outline
question_answer
What is the amount of withdrawn in RazorPay?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
Need ShipRocket support mobile number.
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
What is the maximum transaction limits in RazorPay?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
How to get date of every after 30 days using PHP?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
How to open a file using Ubuntu Terminal?
Ans(2) ₹0 check_circle_outline
question_answer
question_answer
How to delete the terminated intences in AWS Amazon?
Ans(2) ₹0 check_circle_outline
question_answer
question_answer
question_answer
How many countries Twilio can send SMS?
Ans(2) ₹0 check_circle_outline
question_answer
How to install PHP?
Ans(0) ₹0
question_answer
Which is the most played sports in the world?
Ans(2) ₹0 check_circle_outline
question_answer
How to use webview on Android studio react native?
Ans(2) ₹0 check_circle_outline
question_answer
question_answer
question_answer
How pyshic powers work? Is it real or just rumors?
Ans(3) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
What is the response time of PHP $post variable?
Ans(2) ₹0 check_circle_outline
question_answer
How to delete projects from pinPoint on AWS?
Ans(1) ₹0 check_circle_outline
question_answer
How to Propose Girls in this 2019?
Ans(2) ₹0 check_circle_outline
question_answer
How to transfer data from one website to another?
Ans(2) ₹0 check_circle_outline
question_answer
EDP Training Center in Kokrajhar area.
Ans(1) ₹0 check_circle_outline
question_answer
How to do Long poll using PHP and JavaScript?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
Can I create live straming videos using cloudfront?
Ans(1) ₹0 check_circle_outline
question_answer
Need codes to see the Country using Cloudflare.
Ans(1) ₹0 check_circle_outline
question_answer
How to send sms using Terminal on AWS SNS?
Ans(1) ₹0 check_circle_outline
question_answer
Do Aliens really exists?
Ans(3) ₹0 check_circle_outline
question_answer
question_answer
What is La Liga?
Ans(1) ₹0 check_circle_outline
question_answer
How to Create Login and Logout system using PHP?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
Need PHP functions to convert currencies.
Ans(1) ₹0 check_circle_outline
question_answer
Delete s3 object using PHP SDK.
Ans(1) ₹0 check_circle_outline
question_answer
Does girls like a man with a beard and mustache
Ans(2) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
1mb is equal to how much bytes?
Ans(1) ₹0 check_circle_outline
question_answer
PHP code to get the token of Shiprocket.
Ans(1) ₹0 check_circle_outline
question_answer
How to get the present full url using PHP
Ans(2) ₹0 check_circle_outline
question_answer
How to create discount percentage using php?
Ans(1) ₹0 check_circle_outline
question_answer
The test asking
Ans(0) ₹0
question_answer
How much tables one Mysql database can have?
Ans(1) ₹0 check_circle_outline

Mritunjoy.com is a pleace of Digital Marketplace. Where you will be able to Sell or Download Digital Products.

118

Total users

118

Active users

5

Active Earners

location_on BTR,Assam,INDIA
(Bodoland)
email [email protected]
call -
rss_feed

Copyright ©2019-20 mritunjoy.com,All Rights Reserved