Skip to content

tedilabs/terraform-aws-cost

terraform-aws-cost

GitHub release (latest SemVer) GitHub pre-commit

Terraform module which creates cost related resources on AWS.

Target AWS Services

Terraform Modules from this package were written to manage the following AWS Services with Terraform.

  • AWS CUR (Cost and Usage Report)
    • Report
  • AWS ElastiCache
    • Reserved Instance - Comming Soon!
  • AWS RDS (Relational Database Service)
    • Reserved Instance
  • AWS Savings Plan
    • Comming Soon!

Usage

AWS CUR (Cost and Usage Report)

module "cur_report" {
  source  = "tedilabs/cost/aws//modules/cur-report"
  version = "~> 0.1.0"

  name        = "example-report"


  ## Delivery Options
  time_granularity     = "HOURLY"
  versioning_strategy  = "OVERWRITE_REPORT"
  data_refresh_enabled = true


  ## Delivery Destination
  delivery_s3_bucket = {
    name       = "hello-my-bucket"
    key_prefix = "test/"
    region     = "us-east-1"
  }


  ## Content
  compression_format         = "GZIP"
  additional_schema_elements = ["RESOURCES"]
  additional_artifacts       = ["REDSHIFT", "QUICKSIGHT"]
}

Examples

AWS CUR (Cost and Usage Report)

AWS RDS (Relational Database Service)

Self Promotion

Like this project? Follow the repository on GitHub. And if you're feeling especially charitable, follow posquit0 on GitHub.

License

Provided under the terms of the Apache License.

Copyright © 2023, Byungjin Park.