end_date): """アカウント・サービス別のコストを取得 {account_id: {service: Decimal}}""" response = ce_client.get_cost_and_usage( TimePeriod={"Start": start_date, "End": end_date}, Granularity="MONTHLY", Metrics=["UnblendedCost"], GroupBy=[ {"Type": "DIMENSION", "Key": "LINKED_ACCOUNT"}, {"Type": "DIMENSION", "Key": "SERVICE"}, ], )