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.
|Specified whether cost estimation is enabled.
|Cost estimation provider.
|A ISO 4217 currency to report results.
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
Terrateam supports the following Infracost environment variables:
|User’s Infracost API key. Sign up and naviate to the
Org Settings page to get your free Infracost API key.
|A ISO 4217 currency to report results. The value in the repository configuration takes precedence.