AWS provider can't proceed beyond sts:GetCallerIdentity

I am on mac catalina with intel chip. when i run terraform --version, it gives the following, Is that a correct version to use?

Terraform v1.1.6
on darwin_amd64

Yes. Darwin is the name of the macOS kernel, and amd64 is the architecture used by Intel-powered Mac computers.

Using the following:

provider "aws" {
}
resource "aws_cloudwatch_log_group" "test" {
  name = "/tst2/lvp_17.0"
}

Trying to run: terraform import aws_cloudwatch_log_group.test /tst2/lvp.17.0 and it goes in a loop with the following messages:

2022-03-04T07:41:51.628-0800 [INFO] provider.terraform-provider-aws_v3.74.3_x5: 2022/03/04 07:41:51 [DEBUG] [aws-sdk-go] DEBUG: Request sts/GetCallerIdentity Details:
—[ REQUEST POST-SIGN ]-----------------------------
POST / HTTP/1.1
Host: [sts.amazonaws.com](http://sts.amazonaws.com/)
User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.1.6 (+https://www.terraform.io) terraform-provider-aws/3.74.3 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.42.38 (go1.16; darwin; amd64)
Content-Length: 43
Authorization: AWS4-HMAC-SHA256 Credential=ASIAW3LNBHIITLZT3BI5/20220304/us-east-1/sts/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=1031cecf1b4e08a866fd8d06f02adaafdbdaf15fd64defe753d7d0ebbf28dffa
Content-Type: application/x-www-form-urlencoded; charset=utf-8
X-Amz-Date: 20220304T154151Z
X-Amz-Security-Token: FwoGZXIvYXdzEAgaDGjIWyhhEY92oCCKFSKrAWKXYy3U0OES4uha6ur9GODTD1Z1JI8PAC3Ul+VJqVd+ko4zTRve++CURlIm2vfSoGHtweE6JaYW27y+cS0Q1fsZDgRX1LzhfpfsmMAkU1us+nKc238SWYC3VGeCgh0RvcaibOBR9hVPJjTqDbObQFrZZEhdDym5j/1ZafDyBeqSJ6V5aAsw1BHi8kS+8FhAnQZz03m6eJgEsSpdprSj8C9nQCgDQLcKebzSOSivyYiRBjItx8GxOQ+ujX+Loo7L/PhAIYbVfOXnnIbqi7g5QnHp2NP4c0x6+uY9pk7/O8H+
Accept-Encoding: gzip

Action=GetCallerIdentity&Version=2011-06-15
-----------------------------------------------------: timestamp=2022-03-04T07:41:51.628-0800
2022-03-04T07:41:56.287-0800 [TRACE] dag/walk: vertex “aws_cloudwatch_log_group.test” is waiting for "provider["[Terraform Registry](http://registry.terraform.io/hashicorp/aws%22%5D%22)
2022-03-04T07:41:56.287-0800 [TRACE] dag/walk: vertex “aws_cloudwatch_log_group.test (import id “/tst2/lvp_17.0”)” is waiting for "provider["[Terraform Registry](http://registry.terraform.io/hashicorp/aws%22%5D%22)
2022-03-04T07:41:56.287-0800 [TRACE] dag/walk: vertex “root” is waiting for “provider[“[Terraform Registry](http://registry.terraform.io/hashicorp/aws)”] (close)”
2022-03-04T07:41:56.287-0800 [TRACE] dag/walk: vertex “provider[“[Terraform Registry](http://registry.terraform.io/hashicorp/aws)”] (close)” is waiting for “aws_cloudwatch_log_group.test (import id “/tst2/lvp_17.0”)”
2022-03-04T07:42:01.289-0800 [TRACE] dag/walk: vertex “root” is waiting for “provider[“[Terraform Registry](http://registry.terraform.io/hashicorp/aws)”] (close)”

Any update on the above issue?

Hi @gspmsa,

This behavior seems to suggest that the AWS provider is having problems reaching the AWS STS API in order to learn which account your current credentials belong to.

This seems more likely to be a network or AWS credentials configuration problem than a Terraform-specific problem. I’m going to move your topic into the AWS provider forum category in case folks there have more specific ideas.