Problem
When using Terraform Enterprise, the tfe-licensing container may fail to report license utilization and log the following timeout error.
{
"@level": "error",
"@message": "error exporting snapshot",
"@module": "tfe-licensing.census",
"@timestamp": "...",
"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"
}Cause
This error occurs when your network environment does not allow the required egress traffic for the Automated License Utilization Reporting feature to send its report to HashiCorp.
This feature was released in Terraform Enterprise version v202305-1 and is enabled by default. Refer to the Automated License Utilization Reporting documentation for instructions on how to opt-out.
Solution
To resolve this issue, update your network egress rules to allow traffic to the required endpoints.
- Ensure your network allows egress to
https://api.replicated.comas described in the network requirements documentation. - Ensure your network allows HTTPS egress on port
443tohttps://reporting.hashicorp.servicesby adding the following IP addresses to your allowlist:100.20.70.1235.166.5.2223.95.85.11144.215.244.1