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

Create Input based on terraform #26

Open
jerome-jutteau opened this issue Dec 14, 2022 · 0 comments
Open

Create Input based on terraform #26

jerome-jutteau opened this issue Dec 14, 2022 · 0 comments
Labels

Comments

@jerome-jutteau
Copy link
Contributor

osc-cost currently supports two types of data input: outscale API and Json (from osc-cost output).

This issue would be to add a new type of input: terraform

osc-cost would read what outscale infrastructure would be created in total (not just what would be added or removed) as input and use outscale API for catalog input.

Use-cases:

  • This would allow CI which are handling terraform to provide an output of what would be the new cost.
  • Previous terraform cost could also be stored for comparaison and can possibly fail.
  • This would allow a monitoring system to alert when price is over a specific threshold.

I first naïve approach would be to run:

terraform init
terraform plan -out=plan
terraform show -json plan > desc.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant