Cost Explorer for Lambda@Edge

0

A customer is trying to see the total cost for Lambda@Edge functions. The assigned cost tags for Lambda@Edge isn't showing on cost explorer. He can only see the cost of Lambda@Edge per region. Is there a way to see the cost for Lambda@Edge either per function or all functions across all regions instead of per region?

AWS
SherifT
질문됨 3년 전817회 조회
1개 답변
0
수락된 답변

As to documentation, tags cannot be applied to Lambda@Edge resources, which I take it to be that tags are not applicable once Lambda@Edge functions are deployed. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-requirements-limits.html#lambda-requirements-tagging

The only viable way to show cost per Lamba@Edge function is to use Cost and Usage Report, with query like below. Please note that both Lambda-Edge-GB-Second and Lambda-Edge-Request usage types are included. ` SELECT line_item_resource_id as Resource, SUM(CAST(line_item_unblended_cost AS decimal(16,8))) AS TotalSpend FROM

<table name> WHERE (year='2021') AND (month='01') AND line_item_product_code = 'AmazonCloudFront' AND line_item_usage_type LIKE '%Lambda-Edge%' AND line_item_line_item_type = 'Usage' GROUP BY line_item_resource_id ORDER By TotalSpend DESC; `

I would also remind that you need to consider CloudWatch log cost for Lambda@Edge function as well, which you would have to use CUR to analyze cost per log group for each function.

AWS
답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인