Problem
When attempting to download a support bundle from the Terraform Enterprise (TFE) installer dashboard, the download fails with a timeout error. This issue can occur even for relatively small bundles (e.g., under 1 GB).
Prerequisites
- Terraform Enterprise is deployed behind an AWS Application Load Balancer (ALB).
Cause
The default connection idle timeout for an AWS ALB is 60 seconds. This duration is often insufficient for generating and downloading a TFE support bundle, leading to the connection being terminated prematurely.
Solution
To resolve this issue, you must increase the idle timeout setting on the AWS Application Load Balancer that routes traffic to your Terraform Enterprise instance.
- Navigate to the Load Balancers section of the EC2 console in your AWS account.
- Select the ALB associated with your TFE instance.
- In the Attributes tab, click Edit.
- Locate the Idle timeout setting and increase the value significantly. A value of 300 seconds (5 minutes) is a reasonable starting point, but you may need to adjust it based on the size of your support bundles.
- Save the changes.
After increasing the timeout, attempt to download the support bundle from the installer dashboard again. The download should now complete successfully.
Additional Information
For more details on ALB settings, refer to the official AWS documentation on Connection idle timeout.