简体   繁体   English

在 AWS 帐户中为两个不同的 EC2 实例单独计费

[英]Seperate Billing in AWS Account for two different EC2 Instance

I have two EC2 instances in a single AWS account.我在一个 AWS 账户中有两个 EC2 实例。 Both are running for different application services.两者都针对不同的应用程序服务运行。 Now, I want to make billing separate for that particular account.现在,我想为该特定帐户单独计费。 So, I can get the exact spent and charges for the applications and can manage my account as per that for separate accounting purposes.因此,我可以获得应用程序的确切花费和费用,并且可以根据单独的会计目的管理我的帐户。

Is it possible?可能吗? If not, then can anyone suggest me a better way to achieve this?如果没有,那么谁能建议我更好的方法来实现这一目标?

I'm planning to handle the different AWS accounts for both services.我计划为这两种服务处理不同的 AWS 账户。 But, it will be hard to manage so, I can't prefer that option.但是,这将很难管理,所以我不喜欢那个选项。

For more, In Google Cloud, they're providing to handle different billing accounts within the same google cloud account.更重要的是,在谷歌云中,他们提供在同一个谷歌云账户中处理不同的计费账户。 So, I think this concept might be available on AWS also.所以,我认为这个概念也可能在 AWS 上可用。

Thanks in advance for any little bit of help or suggestion.提前感谢您提供的任何帮助或建议。

You can't get separate bills for different sets of resources within the same AWS account.您无法为同一 AWS 账户中的不同资源集获取单独的账单。 However, you can filter out the costs for different sets of resources using tags.但是,您可以使用标签筛选出不同资源集的成本。 By using a distinct tag (or set of tags) in the resources you allocate to each application, you can get a breakdown of the cost for each application in billing reports and cost explorer.通过在分配给每个应用程序的资源中使用不同的标签(或一组标签),您可以在计费报告和成本浏览器中获得每个应用程序的成本明细。 See the documentation for details and steps on how to set it up - https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html有关如何设置它的详细信息和步骤,请参阅文档 - https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html

I believe it's the same with Google Cloud as well - although you can have multiple billing accounts within your google account (the hierarchy in GC is different to AWS, and an AWS account is more similar to a GC project than a GC account), a project within your account must have one billing account and does not support multiples.我相信 Google Cloud 也一样——尽管您可以在您的 Google 帐户中拥有多个计费帐户(GC 中的层次结构与 AWS 不同,AWS 帐户更类似于 GC 项目而不是 GC 帐户),一个您帐户中的项目必须有一个结算帐户,并且不支持多个。

By this -这样 -

Now, I want to make billing separate for that particular account.现在,我想为该特定帐户单独计费。

do you mean you already have 2 different AWS accounts?你是说你已经有 2 个不同的 AWS 账户? If yes, you can get billing details as per account if they become part of same Organization.如果是,如果他们成为同一组织的一部分,您可以根据帐户获取账单详细信息。 Check AWS Organizations docs for more info.查看AWS Organizations文档了解更多信息。

With Orgs, you can view bills of different accounts from one account itself if it is part of org.使用 Orgs,您可以从一个帐户本身查看不同帐户的账单(如果它是 org 的一部分)。 Also your accounts get discounts for services.您的帐户也可以获得服务折扣。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM