Hello Ibrahim,
I believe there are 2 options open to you. These options are
-
Object lifecycle management
-
Using S3 Standard intelligent tiering
Option 1. Using Lifecycle Management
In order to manage your stored images i.e objects so that they are stored cost-effectively throughout their lifecycle, you will need to configure the Amazon S3 Lifecycle. The S3 Lifecycle configuration is a set of rules that define actions that Amazon S3 applies to a group of objects. There are essentially two types of actions:
-
Transition actions – These actions define when (defined time) objects transition from one storage class to another. For example, you might choose to transition objects from the S3 Standard to the S3 Standard-IA (Infrequent Access) storage class 30 days after creating them, or transition objects to an archive like the S3 Glacier Flexible Retrieval storage class 120 days after creating them or to S3 Glacier deep Archive one year after creating them. Please note that there are costs associated with lifecycle transition requests.
-
Expiration actions – These actions define when objects expire. AWS S3 deletes expired objects on your behalf based on your settings. There are also costs based on when you choose to expire objects.
Opton 2: Use AWS S3 Standard intelligent tiering
This may be your best bet since you do not know how frequently your generated and stored medical images will be accessed. The Amazon S3 Intelligent-Tiering storage class is designed to optimize storage costs by automatically moving data to the most cost-effective access tier when access patterns change.
S3 Intelligent-Tiering automatically stores objects in three access tiers: the first tier is optimized for frequent access, then a lower-cost tier optimized for infrequent access, and a very low-cost tier optimized for rarely accessed data.
For a small monthly object monitoring and automation charge, S3 Intelligent-Tiering moves objects that have not been accessed for 30 consecutive days to the Infrequent Access tier for up to 39% savings and after 90 days of no access, they are moved to the Archive Instant Access tier with up to 66% savings. If the objects are accessed anytime in the future, S3 Intelligent Tiering moves the objects back to the Frequent Access tier.
For greater savings on rarely accessed stored Medical images (objects), check out the opt-in asynchronous Archive and Deep Archive Access tiers in S3 Intelligent-Tiering.
Considering that you have already been charged a fee for using the object monitoring and automation feature, there are no retrieval charges in S3 Intelligent-Tiering in contrast to when lifecycle management is used (there are charges if objects are moved back for access).
Note that S3 Intelligent-Tiering has no minimum eligible object size, but objects smaller than 128 KB are not eligible for auto-tiering. These smaller objects may be stored, but they’ll always be charged at the Frequent Access tier rates and don’t incur the monitoring and automation charge.
Sorry, this was quite long. Hope this was helpful.
More reference: https://docs.aws.amazon.com/AmazonS3/latest/userguide/intelligent-tiering.html
Regards,
Nuhu M