Terrateam will provide cost estimates on each pull request that Terrateam runs a Plan operation against. A comment will be placed alongside Plan output showing the monthly spend change for the Dirspace.
Terrateam behavior can be configured via a
config.yml. This file is located in
a directory named
.terrateam at the root of your Terraform repository:
See Configuration documentation for details.
See Configuration Reference documentation for details.
|enabled||Boolean||Specified whether cost estimation is enabled.|
|provider||String||Cost estimation provider.|
|currency||String||A ISO 4217 currency to report results.|
cost_estimation: enabled: true provider: infracost currency: USD
The Infracost provider is served by the Infracost Cloud Pricing API (opens in a new tab).
- No cloud credentials or secrets are sent to the Infracost Cloud Pricing API
- Infracost does not make any changes to your Terraform state or cloud resources
If an Infracost API key is configured as a GitHub Actions Secret, then Terrateam will use the official Infracost public API endpoint.
To set your Infracost API Key as a GitHub Actions Secret:
- Export your Terraform
organization/repocombination as an environment variable.
- Create the Infracost API Key GitHub Secret
gh secret --repo "$REPO" set INFRACOST_API_KEY
Terrateam supports the following Infracost environment variables:
|User's Infracost API key. Sign up (opens in a new tab) and naviate to the |
|A ISO 4217 (opens in a new tab) currency to report results. The value in the repository configuration takes precedence.|