Skip to content

Latest commit

 

History

History
53 lines (45 loc) · 1.03 KB

README.md

File metadata and controls

53 lines (45 loc) · 1.03 KB

What is aws_cost_usage

Notify daily cost usage of an AWS account to slack channel.

How to use this

Execution

Lambda

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
}

Others

You can download binary from GitHub Release.

Support multi languages

  • English
    • Set LANGUAGE=en
  • Japanese
    • Set LANGUAGE=ja

Development

  • Init
cp .env{.sample,}
  • Run locally
make run