关于使用AWS的CDN-CloudFront的费用计算及说明

发布时间 2023-03-23 21:56:09作者: 520_1351

今天因需要为一个自己设计的小项目计算费用,因为涉及到了CloudFront,也是需要预算其费用的、

因为这里笔者说明一下关于使用AWS的CloudFront ,会如何进行计费,有那些收费条目

首页说一下,关于CloudFront的收费标准及详情、可以参考:https://www.amazonaws.cn/en/cloudfront/pricing/?nc1=h_ls

这里笔者也进行一下总结,首先CloudFront是根据以下四个方面的实际使用情况计算的:

  • 数据传出(互联网/源服务器)
  • HTTP/HTTPS 请求
  • 失效请求
  • 字段级加密请求

其中数据传出至互联网:

可以看出一般我们都可以按 0.30866 CNY/GB,传出流量越多,后面的越便宜,

另还涉及到 区域数据传出至源服务器,这个始终都是按0.30866 CNY/GB

然后就是后面3种类型的收费了,基本就很便宜了,接下来先看看

Region Pricing for All HTTP Methods

Invalidation requests

No additional charge for the first 1,000 paths requested for invalidation each month. Thereafter, CNY 0.03355 per path requested for invalidation.

Note: A path listed in your invalidation request represents the URL (or multiple URLs if the path contains a wildcard character) of the object(s) you want to invalidate from CloudFront cache. For more information about invalidation, see 'invalidating objects' in the Amazon CloudFront Developer Guide.

Field Level Encryption requests

Field-level encryption is charged based on the number of requests that need the additional encryption; you pay CNY 0.000013 for every 10,000 requests that CloudFront encrypts using field-level encryption in addition to the standard HTTPS request fee.

Origin server to Amazon CloudFront (origin fetches)
With Amazon CloudFront, you can use an Amazon Web Services origin (e.g., Amazon S3, Amazon EC2, Elastic Load Balancing, etc.) or your own origin servers to store the original, definitive versions of your files. If you are using an Amazon Web Services China origin, data transferred from origin to edge locations (Amazon CloudFront "origin fetches") will be at no additional cost. If you are using an international Amazon Web Services origin (non-China Amazon Web Services origin), data transferred from origin to edge locations (Amazon CloudFront "origin fetches") will be charged at the standard Data Transfer rates in the region.

Amazon CloudFront to origin server

Data Transfer out of Amazon CloudFront to your origin server, such as POST and PUT requests, will be billed at the “Regional Data Transfer Out to Origin” rates listed in the Regional Data Transfer Out to Origin (per GB) table.

All prices above are exclusive of applicable taxes, fees, or similar governmental charges, if any exist, except as otherwise noted.

 

笔者也特意根据自己这边的实际情况去咨询了AWS客服两种情况的收费

1、CloudFront --> ALB,这个就是按按“区域数据传出至源服务器” 计费,0.30866 CNY / GB

2、ALB/EC2  --> CloudFront 的流量,是免费的,与上面介绍的情况也是一致的

 

 

 

尊重别人的劳动成果 转载请务必注明出处:https://www.cnblogs.com/5201351/p/17249594.html