Skip to content

Latest commit

 

History

History
63 lines (39 loc) · 1013 Bytes

File metadata and controls

63 lines (39 loc) · 1013 Bytes

AWS Cost Reporter

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 USD

How to prepare

This 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 install

How to deploy

npx serverless deploy

How to remove deployment services

npx serverless remove