Iam endpoint time out


we are using assume role authentication for instance provisioning. But terraform was not able validate the arn, where we are able to generate new token and describe instance via aws cli.

Even if we pass the aws access & secret key manually to terraform it still fails with iam time out.
plugin.terraform-provider-aws_v3.29.0_x5: 2021/02/23 14:15:53 [DEBUG] [aws-sdk-go] DEBUG: Send Request iam/GetUser failed, attempt 13/25, error RequestError: send request failed caused by: Post "https://iam.amazonaws.com/": dial tcp i/o timeout: timestamp=2021-02-23T14:15:53.663Z

ec2-instance where we are executing terraform commands doesn’t have internet so the network traffic must go via vpc endpoints.
Is there way to address this issue without connecting to internet.


1 Like