Monitor EFS Cost and Usage filter rules for using boto3

0

Hi everyone,

I'm trying to monitor the EFS usage of a specific drive with the boto3 get_cost_and_usage. However, the return value is more than twice as large as I would expecy from my own bill and the data stored on EFS.

The function in question is:

resources = client.get_cost_and_usage(
    TimePeriod={
        'Start': start_time,
        'End': end_time
    },
    Filter=filter_rules,
    Granularity='DAILY',
    Metrics=['UsageQuantity', 'UnblendedCost']
)

With the filter rules:

[ { 'Key': 'Customer', 'Values': ['customer_id'], 'MatchOptions': ['EQUALS'] } ]

The EFS filesystem has the tag Customer=customer_id assigned.

Hence, the question is: what are the correct filter rules to monitor the usage of EFS in GIB/month?

Thank you in advance.

1 個回答
0

Could you please check whether the tag you are using to filter is not being used for any other services. In case that is the situation then would request you to create a unique tag for EFS.

You can also refer to the below link to get indication around how tag should be implemented and used. https://aws.amazon.com/blogs/aws-cloud-financial-management/manage-your-amazon-elastic-file-system-efs-costs-using-aws-budgets/

AWS
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南