Hi Folks!
Does anyone know how to set the storage class of the file when uploading to S3?
I am trying to use infrequent access (STANDARD IA)
filepath
|> S3.Upload.stream_file()
|> S3.upload(bucket, s3_path)
|> ExAws.request(region: region, storage_class: "STANDARD_IA")
I’ve just found my own answer… if you need you can do it:
filepath
|> S3.Upload.stream_file()
|> S3.upload(bucket, s3_path, storage_class: "STANDARD_IA")
|> ExAws.request(region: region)
ExAws.S3.put_object(bucket, path, content, storage_class: "STANDARD_IA") |> ExAws.request(region: "us-west-2")
2 Likes