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
Enable automated product usage reports
This topic describes how to enable Terraform Enterprise to automatically report product usage information to HashiCorp. For information about the product usage data Terraform Enterprise sends to HashiCorp, refer to Terraform Enterprise product data reference. Usage data that Terraform Enteprise generates is human-readable.
Configure network access
Terraform is configured to automatically report product usage data by default, but you must configure your network to allow Terraform Enterprise to deliver the data to HashiCorp. Refer to Opt out of product usage reporting for instructions on how to disable automatic reports.
Configure your network to allow outbound HTTPS traffic on port
443.Configure your network to allow HTTPS egress on port
443fromhttps://reporting.hashicorp.servicesby allow-listing the following IP addresses:Configure your network to allow egress to
https://api.replicated.com
For additional information about network configurations for Terraform Enteprirse, tefer to Configure network access.
Verify the report data
Terraform Enterprise automatically begins reporting data within approximately 24 hours from start up. Check the logs to verify that Terraform Enterprise is successfully sending the data. Refer to Log location and format for more information.
{
"@level": "debug",
"@message": "export finished successfully",
"@module": "tfe-licensing.licensingexporter",
"@timestamp": "2023-05-10T17:48:06.656979Z"
}
Terraform Enterprise logs report an error when your installation is air-gapped or when your network does not allow the correct egress:
{
"@level": "error",
"@message": "error exporting snapshot",
"@module": "tfe-licensing.census",
"@timestamp": "2023-05-11T01:50:51.662155Z",
"err": "export failed with error POST https://reporting.hashicorp.services giving up after 5 attempt(s): Post \"https://reporting.hashicorp.services\": dial tcp 35.166.5.222:443: i/o timeout"
}
Either reconfigure your network to allow egress and check back in roughly 24 hours or follow the instructions for manually generating product usage reports.
Opt out of product usage reporting
If your installation is air-gapped or you do not want to report product utilization data to HashiCorp, you can opt out of reporting.
- Add the following environment variable to your deployment configuration
TFE_USAGE_REPORTING_OPT_OUT=TRUE. - Restart your system.
- Check your product logs roughly 24 hours after opting out to make sure that the system does not send reports.
When opting out in an internet-connected environment, the report contains fields in the JSON output set to 0.