This system will notify you of the AWS billing amount via Email, Slack, or LINE in the following message format.
- Title
AWS Billing Notification (mm/dd~mm/dd) : <Total Cost> USD
- Message
・<Service Name>: <Service Cost> USD
・<Service Name>: <Service Cost> USD
...
- (If you want to notify via Slack) Obtain the webhook URL by referring to the following.
- (If you want to notify via LINE) Obtain a Perspnal Access Token by referring to the following.
- Clone this repository.
git clone https://github.com/tsukuboshi/sam-notify-aws-billing.git
cd sam-notify-aws-billing
- Build the SAM application.
sam build
- Deploy the SAM application.
- For Email
sam deploy --parameter-overrides \
EmailAddress=<Address>
- For Slack
sam deploy --parameter-overrides \
SlackWebhookUrl=<WebHookURL>
- For LINE
sam deploy --parameter-overrides \
LineAccessToken=<AccessToken>
- (If you want to notify via LINE) Approve the email subscription to the SNS topic refer to the following.