There are some third parties online estimator on internet, but in your
case, the calculus should not be too hard.

In the following page, you have all the fees for all the cases:
https://aws.amazon.com/fr/s3/pricing/

Basically, there are only 2 kind of fees that will be charged to you for
this operation:
1) (GET,LIST, ....) fee required for the requests needed to do the operation
2) A data transfer out fee that is dependent of the size of the object that
you want to download.

For 1), you can just ignore it is it will probably be insignificant.
You just download a single file, so the overall operation will just
requires a dozen of requests.
You pay proportionally to your usage with something like 0.005 or 0.0004
per thousand of request.
So we can easily assume that you will probably be charged a lot less than
0.0005.

For 2), this is where the cost will be significant.
Here, I guess that you will transfer to "Internet" (ie you download to your
computer).
(Other case are transfer/copy bucket to bucket)
For this it is a price per GB, with different levels.
So, if  we take the example of the 100 GB file:
You will pay 0$ for the 1st GB +0.09 * 99 = 8.91$ for the remaining 99 GB.

You can get the size of the file by using the "info" command instead of
"get".

A last point to take care of, prices are not the same depending of the
"Region" where is located the file.
In the amazon page, there is a select box to select the region to see the
correct price.

If you can't get the region info from the source, you can do 2 things:
- Do your estimate with the most expensive region that is probable for your
case, and so you know the upper bound of the cost.
- When you call the "info" request, use the -d flag. It will show all the
debug logs of s3cmd, and you should be able to see in the first exchange in
which region is the file located, as we have to redirect the requests to
the correct region.

As a complement, you can find another example of calculating costs in the
readme of s3cmd:
https://github.com/s3tools/s3cmd/blob/master/README.md
(Just look at the idea, but refer to amazon page for the actual pricing)

Let me know if it is not clear enough,

Regards,

Florent

On Wed, Apr 29, 2020 at 10:58 PM Andrew Davidson via S3tools-general <
s3tools-general@lists.sourceforge.net> wrote:

> I need to estimate how the following transfer will cost. Any idea how I
> can go about this? Seem like AWS would have some sort of tool for this
> however I could not find it
>
>
> s3cmd get --requester-pays
> s3://cgl-rnaseq-recompute-fixed/cwl-example.tar.gz
>
> Kind regards
>
> Andy Davidson
> _______________________________________________
> S3tools-general mailing list
> S3tools-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/s3tools-general
>
_______________________________________________
S3tools-general mailing list
S3tools-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s3tools-general

Reply via email to