I'm using the AWS CLI to use Amazon's S3 storage for backing up files:
aws s3 sync /backup-these-files s3://my-backup
How can I specify the x-amz-storage-class
header, to tell it to put these files into the STANDARD-IA storage tier?
I can't figure the options with the AWS CLI to add a header or otherwise specify this option.
Reference: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html#sc-howtoset
You can use
--storage-class STANDARD_IA
option.References
AWS S3 sync