Identify Cost of unused VPC Endpoint across multiple accounts under a payer

0

Hi,

VPC endpoint are charged today per ENI/ per hr as well the data processing through each of the ENI. I am looking to understand, how can I know which VPC endpoints are unused through all of the multiple acccounts of a single customer?

AWS
질문됨 4달 전247회 조회
1개 답변
0
수락된 답변

Hi you can use following query Athena CUR query

SELECT
	bill_payer_account_id,
	line_item_usage_account_id,
	line_item_operation,
	line_item_resource_id,
	product_product_family,
	product_servicename,
	line_item_line_item_description,
	pricing_unit,
	resource_tags_user_name,
	year,
	month,
	line_item_unblended_rate,
	sum(line_item_usage_amount) as Usage,
	sum(line_item_unblended_cost) as Cost
FROM
	"customer_cur_data"."customer_all"
where
	line_item_operation = 'VpcEndpoint'
	AND bill_payer_account_id in ('')
	and year='2023' and month in ('04')
	AND line_item_line_item_type NOT IN ('Tax','Refund','Credit')
	AND product_servicename = 'Amazon Virtual Private Cloud'
	group by 1,2,3,4,5,6,7,8,9,10,11,12

replace with actual account numbers and months. Download results and then you will get account wise resource with bytes transferred and usage hours. "VpcEndpoint-Bytes" represents data processed

https://aws.amazon.com/privatelink/pricing/

AWS
답변함 4달 전
profile pictureAWS
전문가
검토됨 4달 전
  • Thanks you Kiran.. didnt expect to get the response so quickly. Amazing. this work flawlessly. Thanks you so. much.

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

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

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

관련 콘텐츠