Introduction
Terraform Enterprise offers a feature to estimate cost of infrastructure as described here.
Problem
When navigating to Settings > Cost Estimation menu, the checkbox to enable Cost Estimation is greyed out and unable to turn on the feature for the organization.
Cause
Cost Estimation module requires basic configuration to communicate to cloud providers to retrieve pricing information. This pricing information is available to Terraform Enterprise via API calls therefore the pre-requisite configuration is required.
Solution
To enable Cost Estimation at organization level, there are two mandatory steps:
- First, credentials for the target cloud provider is required for the API calls to retrieve pricing information. Please proceed to follow the steps listed in this document.
Please note that the credentials in these setting are not associated with Terraform Enterprise organizations or workspaces. They are purely to communicate with the APIs of cloud providers to retrieving pricing information.
- Second, navigate back to Cost Estimation page of the organization which should now have the checkbox enabled, then proceed with the guideline on the Geting Started page.