Lambda set to send information of cost explorer.
You will receive such a following message by email.
Subject: AWS Cost Weekly Report
From YYYY-MM-01 to YYYY-MM-DD(today)
Current Cost in this month: XXXXX USD
----------
AWS Cost Explorer: XXXX USD
AWS Key Management Service: XXXX USD
Amazon EC2 Container Registry (ECR): XXXX USD
EC2 - Other: XXXX USD
Amazon Relational Database Service: XXXX USD
Amazon Simple Storage Service: XXXX USD
Tax: XXXX USDThis application uses Serverless Framework for deployment. It reads your AWS account name. So set it as environmental value.
export AWS_PROFILE=<Your AWS Account Name>It is necessary to write email address into config/.config.{stage}.yml for SNS topic subscription.
EMAIL: <subscription email of SNS>Install libraries
npm installnpx serverless deploynpx serverless remove