- Más nuevo
- Más votos
- Más comentarios
No, aesterisk as a wildcard in S3 Lifecycle rule Prefix can't be used.
However I understand your use case, you should consider tag based filtering, where you can apply some common tag to those objects inside those commonly named folders and then create lifecycle rules on basis of tag instead of prefix(leaving prefix blank).
If that's not a feasible workaround, then you would need to create lifecycle rule for each of those prefix.
Hope you find it useful.
I don't think S3 object keys can use wildcards.
This is because the asterisk is not treated as a wildcard, but as a valid special character, as described in the following document.
https://repost.aws/knowledge-center/s3-event-notification-filter-wildcard
So if you want to move things within a specific folder, you will need to create a lifecycle rule for each folder.
Thank you Riku for the advise.
Contenido relevante
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace 3 años
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace 7 meses
Thanks for your advise secondabhi_aws