For all versions of the Terraform AWS Provider, plans fail during request STS/GetCallerIdentity and logs show the following error message:
Error: error configuring Terraform AWS Provider: error validating provider
credentials: 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
2022-11-13T23:34:35.034Z [DEBUG] provider.terraform-provider-aws_v4.30.0_x5:
Amz-Sdk-Request: attempt=2; max=25
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.