

# Cost
Cost

 You are responsible for the cost of the AWS services used while running this Guidance, which can vary based on whether you are transferring Amazon S3 objects or Amazon ECR images. 

 The Guidance automatically deploys an additional Amazon CloudFront Distribution and an Amazon S3 bucket for storing the static website assets in your account. You are responsible for the incurred variable charges from these services. For full details, refer to the pricing webpage for each AWS service you will be using in this Guidance. 

 The following examples demonstrate how to estimate the cost. Two example estimates are for transferring Amazon S3 objects, and one is for transferring ECR images. 

 **Cost of an Amazon S3 transfer task** 

 For an Amazon S3 transfer task, the cost can vary based on the total number of files and the average file size. 

 Example 1: As of this revision, transfer 1 TB of S3 files from AWS Oregon Region (`us-west-2`) to AWS Beijing Region (`cn-north-1`), and the average file size is **50MB**. 

 Total files: \$120,480 

 Average speed per Amazon EC2 instance: \$11GB/min 

 Total Amazon EC2 instance hours: \$117 hours 


|  AWS service  |  Dimensions  |  Cost  | 
| --- | --- | --- | 
|  Amazon EC2  |  \$10.0084 per hour (t4g.micro)  |  \$10.14  | 
|  Amazon S3  |   \$1 12 GET requests \$1 10 PUT request per file  GET: \$10.0004 per 1000 request  PUT: \$10.005 per 1000 request  |  \$10.12  | 
|  Amazon DynamoDB  |   \$12 write requests per file   \$11.25 per million write   |  \$10.05  | 
|  Amazon SQS  |  \$12 request per file \$10.40 per million requests  |  \$10.01  | 
|  Data Transfer Out  |  \$10.09 per GB  |  \$192.16  | 
|  Others (For example, CloudWatch, Secrets Manager, etc.)  |   |  \$1 \$11  | 
|   |  TOTAL  |  \$1 \$194.48  | 

 Example 2: As of this revision, transfer 1 TB of S3 files from AWS Oregon region (`us-west-2`) to Mainland China Beijing Region (`cn-north-1`), and the average file size is **10KB**. 

 Total files: \$1107,400,000 

 Average speed per Amazon EC2 instance: \$16MB/min (\$110 files per sec) 

 Total Amazon EC2 instance hours: \$13000 hours 


|  AWS Service  |  Dimensions  |  Cost  | 
| --- | --- | --- | 
|  Amazon EC2  |  \$10.0084 per hour (t4g.micro)  |  \$125.20  | 
|  Amazon S3  |   \$1 2 GET requests \$1 1 PUT request per file  GET: \$10.0004 per 1000 request  PUT: \$10.005 per 1000 request  |  \$1622.34  | 
|  Amazon DynamoDB  |   \$12 write requests per file   \$11.25 per million write   |  \$1268.25  | 
|  Amazon SQS  | \$12 request per file \$10.40 per million requests  |  \$185.92  | 
|  Data Transfer Out  |  \$10.09 per GB  |  \$192.16  | 
|  Others (For example, CloudWatch, Secrets Manager, etc.)  |   |  \$120  | 
|   |  TOTAL |  \$1 \$11,113.87  | 

 

 **Cost of an Amazon ECR transfer task** 

 For an Amazon ECR transfer task, the cost can vary based on network speed and total size of ECR images. 

 Example 3: As of this revision, transfer 27 Amazon ECR images (\$13 GB in total size) from AWS Ireland Region (`eu-west-1`) to AWS Beijing Region (`cn-north-1`). The total runtime is about 6 minutes. 


|  AWS Service  |  Dimensions  |  Cost  | 
| --- | --- | --- | 
|  AWS Lambda  |  \$10.0000004 per 100ms  |   \$10.000072   (35221.95 ms)   | 
|  AWS Step Functions  |   \$10.000025 per state transition   (\$1 60 state transitions per run in this case)   |  \$10.0015   | 
|  Fargate  |   \$10.04048 per vCPU per hour   \$10.004445 per GB per hour   (0.5 vCPU 1GB Memory)   |   \$10.015   (\$1 2200s)   | 
|  Data Transfer Out  |  \$10.09 per GB  |  \$10.27  | 
|  Others (for example, CloudWatch, Secrets Manager, etc.)  |  Almost 0 |  \$10  | 
|   |  TOTAL |  \$1 \$10.287  | 