cycloidio / terracost

Cloud cost estimation for Terraform in your CLI
MIT License
278 stars 29 forks source link

Add usage cost #96

Closed xescugc closed 1 year ago

xescugc commented 1 year ago

Some resources do not have specific attributes that would be used to calculate the price, this price is set when the resource is used. For this we'll allow a specific file that would specify that usage for the specific resources so we can make a estimation on their usage instead of having a 0 cost.

The format of this file for now will be:

resource_type_default_usage:
    aws_lambda_function:
      monthly_requests: 100000 # Monthly requests to the Lambda function.
      request_duration_ms: 500 # Average duration of each request in milliseconds.