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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ