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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了关于使用AWS的CDN-CloudFront的费用计算及说明相关的知识,希望对你有一定的参考价值。

在本文最前面,先重点说一下,CloudFront在页面上是不分区域的,

但是因CloudFront 上线由西云数据(NWCD)运营,因此 CloudFront 费用会计算在宁夏区域

背景:今天因需要为一个自己设计的小项目计算费用,因为涉及到了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

 

以上是关于关于使用AWS的CDN-CloudFront的费用计算及说明的主要内容,如果未能解决你的问题,请参考以下文章

将 Heroku Rails 应用程序与 Amazon RDS 后端结合使用时的 AWS 数据传输费用

基于python实现将AWS-ElastiCache-的Reserved_Cache_Nodes-预留节点及费用的信息统计

Aazon AWS创建实例EC2

IAM 用户可以为我的 AWS 账户上的服务付费吗?

关于清真云的费用

AWS 使用tag进行精细权限控制