Skip to content

Feature Request: Support customized Storage Class for S3 objects #7

@bmweller

Description

@bmweller

AWS PHP SDK Version 3.75.0 introduces support for S3 intelligent tiering.

The INTELLIGENT_TIERING storage class is designed to optimize storage costs by automatically moving data to the most cost-effective storage access tier, without performance impact or operational overhead.
https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html

Storage Class Designed for Durability (designed for) Availability (designed for) Availability Zones Min storage duration Min billable object size Other Considerations
STANDARD Frequently accessed data 99.999999999% 99.99% >= 3 None None None
STANDARD_IA Long-lived, infrequently accessed data 99.999999999% 99.9% >= 3 30 days 128 KB Per GB retrieval fees apply.
INTELLIGENT_TIERING Long-lived data with changing or unknown access patterns 99.999999999% 99.9% >= 3 30 days None Monitoring and automation fees per object apply. No retrieval fees.
ONEZONE_IA Long-lived, infrequently accessed, non-critical data 99.999999999% 99.5% 1 30 days 128 KB Per GB retrieval fees apply. Not resilient to the loss of the Availability Zone.
GLACIER Long-term data archiving with retrieval times ranging from minutes to hours 99.999999999% 99.99% (after you restore objects) >= 3 90 days None Per GB retrieval fees apply. You must first restore archived objects before you can access them. For more information, see Restoring Archived Objects.

Proposed approach to use s3Client putObject specifying StorageClass

		$this->client->putObject(  
			array(  
				'Bucket'=>$this->bucket,  
				'Key' =>  $this->prefix !== '' ? $this->prefix.'/' : '' . $key,  
				'Body' => &$blob,  
				'StorageClass' => $storageClass  
			)  
		);  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions