import datetime import boto3 def lambda_handler(event, context): today = datetime.date.today() start = today.replace(day=1).strftime('%Y-%m-%d') end = today.strftime('%Y-%m-%d') ce = boto3.client('ce') response = ce.get_cost_and_usage( TimePeriod={ 'Start': start, 'End' : end, }, Granularity='DAILY', Metrics=[ 'NetUnblendedCost' ] GroupBy=[ { 'Type': 'DIMENSION', 'Key': 'LINKED_ACCOUNT' } ] ) retu