简体   繁体   English

如何获取AWS中每个IAM用户使用的资源/成本的摘要?

[英]How to get a summary of ressources/cost used per IAM users in AWS?

I would like to have all cost and ressources used of each IAM users. 我想使用每个IAM用户的所有成本和资源。

Unfortunately, i can have only the cost of my master account. 不幸的是,我只能支付主帐户的费用。 I know that i can create a organization and set OU and users AWS account to have a detail and record each events, but the ressources used by 'users' are used only for my application, i don't need to have real account, and i can't automatises all deployements if i must set password and credentials manually . 我知道我可以创建一个组织并设置OU和用户的AWS账户以提供详细信息并记录每个事件,但是“用户”使用的资源仅用于我的应用程序,我不需要真实账户,并且如果必须手动设置密码和凭据,则无法自动完成所有部署。

One solutions also is to create CloudTrail and Cloudwatch to record each events services but i found this 'too heavy' and i will need to calculate myself the cost because it only get the datas which are used. 一种解决方案是创建CloudTrail和Cloudwatch来记录每个事件服务,但是我发现这太“繁重”了,我将需要自己计算成本,因为它只能获取所使用的数据。

I would like to know if they are exists others systemes to do that in preference with boto3. 我想知道是否存在其他系统优先使用boto3进行此操作。

Thank you for your responses. 谢谢你的回复。

Have a nice day/night. 祝您白天/夜晚愉快。

Costs are not easily associated back to "users". 成本不容易关联回“用户”。

AWS resources are associated with an AWS Account . AWS资源与一个AWS账户相关联。 When a user creates a resource (eg an Amazon EC2 instance), IAM will confirm that they have permission to launch the resource, but the resource itself is not associated with the user who created it . 当用户创建资源(例如Amazon EC2实例)时,IAM将确认他们具有启动资源的权限 ,但是资源本身与创建该资源的用户无关

You would need to add tags to resources to have more fine-grained association of costs to people/projects/departments. 您将需要在资源中添加标签,以使人员/项目/部门的成本更加精细地关联。 These tags can be used in billing reports to provide cost breakdowns. 这些标签可用于开票报告中以提供成本明细。

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

相关问题 我不太确定在这种情况下如何定义用户 - Iam not quite sure how to define Users in this case 如何在 python boto3 中获取 iam 用户的 aws 托管策略的策略文档? - How to get policy document for aws managed policy of a iam user in python boto3? 如何从数据框或列表中的创建日期列表中获取每月创建的用户数? - how to get no of users created per month from a list of created-dates either in data frame or a list? AWS IAM 角色创建失败 - AWS IAM role creation is failing googleads api报告费用不正确-如何获得正确的费用值? -Python - googleads api report cost incorrect - How get the correct cost value? - Python 计算 AWS Comprehend Sentiment 成本 - Calculate AWS Comprehend Sentiment cost 计算圆形物体的每平方成本 - Calculate the cost per square of a circular object 如何在不使用太多资源的情况下保持 python 脚本空闲 - How to keep a python script idle without using too many ressources 如何从 Python 线性模型中的 model 摘要中获取拦截? - How to get the interceipt from model summary in Python linearmodels? 设置 IAM 角色以在 AWS Lambda 中运行 AWS CLI Python 子进程 - Set IAM role to run AWS CLI Python subprocess in AWS Lambda
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM