Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bmweller opened this issue Dec 17, 2018 · 0 comments
Open

Comments

@bmweller
Copy link

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  
			)  
		);  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant