Notify daily cost usage of an AWS account to slack channel.
You can deploy with Terraform resources on your AWS account with AWS Lambda.
terraform {
required_version = "1.8.1"
required_providers {
aws = {
source = "hashicorp/aws"
version = "5.31.0"
}
github = {
source = "integrations/github"
version = "5.42.0"
}
}
}
module "cost" {
source = "github.com/tetsuya28/aws_cost_report.git//module"
name = "aws-cost-report" # AWS resource name to deploy Lambda, IAM, etc
slack_channel = "#random" # Slack channel to notify
slack_token = "xoxb-xxx" # Slack token
build_version = "v0.2.0" # default : latest
}
You can download binary from GitHub Release.
- English
- Set
LANGUAGE=en
- Set
- Japanese
- Set
LANGUAGE=ja
- Set
- Init
cp .env{.sample,}
- Run locally
make run