Terraform
- Terraform Enterprise
- 1.0.x
- v202507-1
- v202506-1
- v202505-1
- v202504-1
- v202503-1
- v202502-2
- v202502-1
- v202501-1
- v202411-2
- v202411-1
- v202410-1
- v202409-3
- v202409-2
- v202409-1
- v202408-1
- No versions of this document exist before v202408-1. Click below to redirect to the version homepage.
- v202407-1
- v202406-1
- v202405-1
- v202404-2
- v202404-1
- v202402-2
- v202402-1
- v202401-2
- v202401-1
- v202312-1
- v202311-1
- v202310-1
- v202309-1
- v202308-1
- v202307-1
- v202306-1
- v202305-2
- v202305-1
- v202304-1
- v202303-1
- v202302-1
- v202301-2
- v202301-1
- v202212-2
- v202212-1
- v202211-1
- v202210-1
- v202209-2
- v202209-1
- v202208-3
- v202208-2
- v202208-1
- v202207-2
- v202207-1
- v202206-1
Manually generate product usage reports
If Terraform Enterprise is deployed to an air-gapped environment, you can manually generate product usage reports to help protect against over-utilization so that you can budget for predictable consumption. For information about the product usage data Terraform Enterprise generates, refer to Terraform Enterprise product data reference. Usage data that Terraform Enteprise generates is human-readable.
Requirements
You can either use the Terraform Enterprise CLI or the admin console UI to generate product usage reports.
To the use CLI, the container hosting Terraform Enterprise must have access. Refer to Access the Terraform Enterprise CLI for details.
Terraform Enterprise does not start the admin console interface by default. You must enable admin console in your configuration. You must also authenticate using a valid API token with elevated privileges for administration tasks to access the admin console.
Generate a report from the CLI
Run the following command to generate a usage report
$ tfectl admin usage-report
When in disk operating mode, Terraform Enterprise generates the product usage report in the /run/terraform-enterprise/usage-report directory.
When in external and active-active mode and on Kubernetes, Terraform Enterprise uploads the product usage report to the same object store bucket where Terraform state files are stored.
Each specific run of the admin usage-report command generates the product usage report in a new JSON file.
Generate a report from the admin console
The admin console generates a product usage report as part of a bundle:
- Navigate to
https://<your-tfe-hostname>:<admin_console_port>. - Authenticate using your admin API token.
- In the sidebar navigation, select Product usage bundle.
- Click Download product usage bundle.
- Wait for the bundle download to complete.
The product usage bundle becomes available on your local machine once download completes.
Send reports to HashiCorp
To send product usage reports to HashiCorp, visit the Licensing utilization reporting page and use the upload form.
Do not modify the usage report file. Modified files will not pass checksum validation, which will cause the upload to fail.