Skip to content

Instantly share code, notes, and snippets.

@wenqiglantz
Last active November 13, 2022 14:31
Show Gist options
  • Select an option

  • Save wenqiglantz/8fa304f98c32949df501f898456a2d71 to your computer and use it in GitHub Desktop.

Select an option

Save wenqiglantz/8fa304f98c32949df501f898456a2d71 to your computer and use it in GitHub Desktop.
# You can use this file to define resource usage estimates for Infracost to use when calculating
# the cost of usage-based resource, such as AWS S3 or Lambda.
# `infracost breakdown --usage-file infracost-usage.yml [other flags]`
# See https://infracost.io/usage-file/ for docs
version: 0.1
resource_type_default_usage:
# The following usage values apply to each resource of the given type, which is useful when you want to define defaults.
aws_lambda_function:
monthly_requests: 100000 # Monthly requests to the Lambda function.
request_duration_ms: 1000 # Average duration of each request in milliseconds.
aws_cloudwatch_log_group:
storage_gb: 10 # Total data stored by CloudWatch logs in GB.
monthly_data_ingested_gb: 1 # Monthly data ingested by CloudWatch logs in GB.
monthly_data_scanned_gb: 0.5 # Monthly data scanned by CloudWatch logs insights in GB.
resource_usage:
# The following usage values apply to individual resources and override any value defined in the resource_type_default_usage section.
aws_lambda_function.demo:
monthly_requests: 50000 # Monthly requests to the Lambda function.
request_duration_ms: 3000 # Average duration of each request in milliseconds.
aws_cloudwatch_log_group.demo:
storage_gb: 100 # Total data stored by CloudWatch logs in GB.
monthly_data_ingested_gb: 10 # Monthly data ingested by CloudWatch logs in GB.
monthly_data_scanned_gb: 5 # Monthly data scanned by CloudWatch logs insights in GB.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment