AWS ECS 的实际定价是多少?

What is the actual pricing for AWS ECS?

AWS EC2容器服务官方网页说:

There is no additional charge for Amazon EC2 Container Service. You pay for AWS resources (e.g. EC2 instances or EBS volumes) you create to store and run your application.

如果我在微型 EC2 实例上托管我的应用程序 运行 并且它会被安排为每天仅 运行 一次,这意味着什么。执行需要 1 小时。

这是否意味着我支付 1 小时的费用,或者我是否也为空闲的 EC2 实例支付费用?在这种情况下 AWS Beanstalk 更好吗?

你是什么意思空闲

在 AWS EC2 中,从定价的角度来看,实例是 运行 或已停止 - 如果您的实例已终止,则没有实例,因此您无需付费。

如果您的实例是 运行,无论您是否有一些执行代码,您都需要付费。

如果您的实例停止,您无需为 EC2 使用付费,但仍需支付其他费用:如果您有弹性 IP 地址,则需要支付费用;如果有 EBS 存储,则需要支付它。

注意:请记住,云是关于最大限度地利用您使用的资源。如果您不使用这些资源,请停止使用这些资源,以免收费。

您可以阅读有关 aws blog

Resource Efficiency – A containerized application can make very efficient use of resources. You can choose to run multiple, unrelated containers on the same EC2 instance in order to make good use of all available resources. You could, for example, decide to run a mix of short-term image processing jobs and long-running web services on the same instance.