Regarding cost optimizations what would be the cheapest
aws s3 cp local-data s3://same-backet/latest
aws s3 cp local-data s3://same-backet/some-date
or
aws s3 cp local-data s3://same-backet/latest
aws s3 cp s3://same-backet/latest s3://same-backet/some-date
I.e. does bucket-to-bucket copy would use less external (to AWS) traffic then local-to-bucket or it would it make even bucket-local-bucket trip to complete the task?
Here are few insights using which you can determine the cost that would be incurred for S3 use.
S3 buckets
in the same AWS Region
does not incur any costSo if you transfer data from your local machine to S3, that will be IN, so not cost, safe to use the below transfers
aws s3 cp local-data s3://same-backet/latest
aws s3 cp local-data s3://same-backet/some-date
Your second option is also safe as you are transferring data in the same bucket, can also transfer data to another bucket in the same region without having to spend extra.
Suggesting to review the AWS S3 pricing page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With