Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Infracost Terraform Provider for modelling usage based costs #35

Closed
aliscott opened this issue Aug 28, 2020 · 1 comment
Closed

Comments

@aliscott
Copy link
Member

This is a proposal for adding an Infracost Terraform Provider for representing usage based costs. This would allow us to reference any existing Terraform resource and augment it with additional information we can use to calculate the usage costs.

Here is an example of how this could be represented for a lambda function:

resource "infracost_usage_aws_lambda_function" "test_lambda" {
  resources = [aws_lambda_function.test_lambda]

  estimated_request_count {
    min = 10000
    max = 15000
  } 
  estimated_request_duration {
    min = 260
    max = 300
  }
}

This would also require a min/max cost range to be represented as first suggested in aliscott#21.

Other options for this could include an additional config file (as suggested in aliscott#34). Other suggestions are welcome.

@aliscott
Copy link
Member Author

aliscott commented Sep 9, 2020

Initial work has been done and released in https://github.com/infracost/infracost/releases/tag/v0.5.0. Provider repo is https://github.com/infracost/terraform-provider-infracost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant