Hi all, I was testing the infracost tool and want...
# general
t
Hi all, I was testing the infracost tool and wanted to ask about how does it work internally when detecting deployed infra and calculating costs. We are using kops terraform provider to manage our Kubernetes clusters. When I run infracost it doesn't seem to be able to generate anything for it. It does work fine for resources deployed with AWS provider though. Is it because it cannot map kops resources with the actual AWS infra that is provisioned?
1
a
Hi Bohdan - correct. We're looking at the Terraform hcl and the costs associated with the resources used. As we don't have support for the Kops provider we don't have the costs for the associated resources. The provider is abstracting away what AWS API calls need to be made to create the resources; at the point Infracost is being run, we don't know what underlying resources are going to be created
t
Gotcha. That makes sense. Thank you for getting back to me.