Problem
When running Terraform plans with the AWS Provider in a Terraform Enterprise environment, plans fail during the sts:GetCallerIdentity request. The logs display the following error message:
Error: error configuring Terraform AWS Provider: error validating providercredentials: error calling sts:GetCallerIdentity: operation error STS: GetCallerIdentity, exceeded maximum number of attempts, 25, https response error StatusCode: 0, RequestID: , request send failed, Post "https://sts.us-east-1.amazonaws.com/": x509: certificate signed by unknown authority
Debug logs may also show repeated attempts to contact the AWS endpoint.
[DEBUG] provider.terraform-provider-aws_v4.30.0_x5: Amz-Sdk-Request: attempt=2; max=25
Cause
This is related to a network communication error. Please check with your network administrator to ensure proper bidirectional communication to Terraform Enterprise (TFE) or your agent if being used.
An HTTP response code of 0 usually means no response or timeout.
Additional Information
- For general troubleshooting, refer to the Terraform Enterprise Basic Troubleshooting Guide.