Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 864 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 864 Bytes

Infracost State Parser Module

Overview

This is a Terraform module to deploy a Lambda function that parses Infracost state files and sends the data to Infracost.

Usage

module "infracost_state_parser" {
  source = "github.com/infracost/infracost-state-parser?ref=v0.1.0"

  organization_id = "your_organization_id"

  state_files = [
    "s3://your_bucket/your_state_file.json",
    "s3://your_bucket/your_state_file2.json",
    "s3://your_other_bucket/your_state_file.json",
  ]
}

// the ARN of the Lambda function created by this module
// give this ARN to Infracost to enable state parsing
output "infracost_state_parser_lambda_arn" {
  value = module.infracost_state_parser.lambda_arn
}

Optional Variables

  • log_level (default: INFO): The log level for the Lambda function. Valid values are DEBUG, INFO, WARN, or ERROR.