
# Cost Analysis

Example cost analysis is performed using infracost.

A valid API key must be provided to enable this functionality.

Terrareg supports both:

 * Hosted Infracost solution (see [INFRACOST_API_KEY](../CONFIG.md#infracost_api_key) to setup)
 * Locally hosted Infracost API (see [INFRACOST_PRICING_API_ENDPOINT](../CONFIG.md#infracost_pricing_api_endpoint), [INFRACOST_API_KEY](../CONFIG.md#infracost_api_key)).

To disable TLS verification for a locally hosted Infracost pricing API, see [INFRACOST_TLS_INSECURE_SKIP_VERIFY](../CONFIG.md#infracost_tls_insecure_skip_verify)
