English 中文(简体)
AWS S3预设装置和剩余物体可能有不同的生命周期规则
原标题:Is it possible to have different lifecycle rules for AWS S3 prefix and remaining objects
  • 时间:2024-03-02 00:03:17
  •  标签:
  • amazon-s3

我有这样一个 b子:

patha/
pathb/
pathc/
pathd/
pathe/

我愿在道路和道路上更长时间地到期,从而制定2项规则,以预先确定。

I then want to expire all remaining objects that don t match either patha or pathb much quicker. But according to https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html if I specify an empty filter, it will apply to all objects in the bucket?

谢谢。

问题回答

您可能不得不将物体捆绑在路边和路面上,并有一条基于对口的规则。

  1. Use a lambda function to tag object, and link the tag value to the object s prefix. Schedule the lambda to run before the lifecycle rules kick in so that you can tag any new objects added to patha/ and pathb/.
  2. Use the "tag" parameters of your lifecycle rule and have rules based on tag




相关问题
how to debug curl call to amazon s3 when it get stuck

I m using the PHP S3 class and this backup script to backup ~500Mb file from Linux server to S3. The call to s3 gets stuck (never returns) and top shows httpd process which consumes 100% CPU and 1% ...

Synchronizing S3 Folders/Buckets [closed]

I have an S3 Bucket that holds static content for all my clients in production. I also have a staging environment which I use for testing before I deploy to production. I also want the staging ...

Pure Javascript app + Amazon S3?

I m looking to confirm or refute the following: For what I have read so far it is not possible to write a web application with only javascript -- no server side logic -- served from Amazon S3 that ...

Using a CDN like Amazon S3 to control access to media

I want to use Amazon S3/CloudFront to store flash files. These files must be private as they will be accessed by members. This will be done by storing each file with a link to Amazon using a mysql ...

What s a good way to collect logs from Amazon EC2 instances?

My app is hosted on an Amazon EC2 cluster. Each instance writes events to log files. I need to collect (and data mine) over these logs at the end of each day. What s a recommended way to collect these ...

热门标签