hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.83k stars 9.17k forks source link

Terraform fails to request sts/GetCallerIdentity but aws sts get-caller-identity succeeds for MAC OS #28870

Open R-leary opened 1 year ago

R-leary commented 1 year ago

Description

Terraform CLI and Terraform AWS Provider Version

terraform -v
Terraform v1.3.6
on darwin_amd64
+ provider registry.terraform.io/hashicorp/aws v4.49.0

Affected Resource(s)

Any aws resources aws_ec2 instance

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 4.16"
    }
  }

  required_version = ">= 1.2.0"
}

provider "aws" {
  region  = "us-west-2"
  access_key = "XXXXXXXXXXXXXXXXRSVB"
  secret_key = "XXXXXXXXXXXXXXXXXXXXXXXtCzK"
}

resource "aws_instance" "app_server" {
  ami           = "ami-830c94e3"
  instance_type = "t2.micro"

  tags = {
    Name = "ExampleAppServerInstance"
  }
}

Debug Output

Contains the output from TF_LOG=DEBUG TF_LOG_PATH="debug.log" terraform plan 
2023-01-13T00:01:34.644-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] Using access key, secret key from configuration
2023-01-13T00:01:34.646-0500 [INFO]  provider.terraform-provider-aws_v4.49.0_x5: [INFO] Retrieved credentials from "StaticCredentials"
2023-01-13T00:01:34.646-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] Trying to get account information via sts:GetCallerIdentity
2023-01-13T00:01:34.647-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] Request
2023-01-13T00:01:34.647-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: POST / HTTP/1.1
2023-01-13T00:01:34.647-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Host: sts.us-west-2.amazonaws.com
2023-01-13T00:01:34.647-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.3.6 (+https://www.terraform.io) terraform-provider-aws/4.49.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.17.3 os/macos lang/go/1.19.3 md/GOOS/darwin md/GOARCH/amd64 api/sts/1.17.7
2023-01-13T00:01:34.647-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Length: 43
2023-01-13T00:01:34.647-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Invocation-Id: 08f145f8-282f-4d57-98b4-90786f9ac4f2
2023-01-13T00:01:34.647-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Request: attempt=1; max=25
2023-01-13T00:01:34.647-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Authorization: AWS4-HMAC-SHA256 Credential=AKIARJGFJ6JRYIWERSVB/20230113/us-west-2/sts/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date, Signature=bc1d9058f2218d167520099fa6175a62c3e0d2dbed083a5fa7173917bea9d967
2023-01-13T00:01:34.647-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Type: application/x-www-form-urlencoded
2023-01-13T00:01:34.648-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: X-Amz-Date: 20230113T050134Z
2023-01-13T00:01:34.648-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Accept-Encoding: gzip
2023-01-13T00:01:34.648-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: 
2023-01-13T00:01:34.648-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Action=GetCallerIdentity&Version=2011-06-15
2023-01-13T00:01:55.884-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] retrying request STS/GetCallerIdentity, attempt 2
2023-01-13T00:01:55.892-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] Request
2023-01-13T00:01:55.892-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: POST / HTTP/1.1
2023-01-13T00:01:55.892-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Host: sts.us-west-2.amazonaws.com
2023-01-13T00:01:55.892-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.3.6 (+https://www.terraform.io) terraform-provider-aws/4.49.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.17.3 os/macos lang/go/1.19.3 md/GOOS/darwin md/GOARCH/amd64 api/sts/1.17.7
2023-01-13T00:01:55.892-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Length: 43
2023-01-13T00:01:55.892-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Invocation-Id: 08f145f8-282f-4d57-98b4-90786f9ac4f2
2023-01-13T00:01:55.892-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Request: attempt=2; max=25
2023-01-13T00:01:55.892-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Authorization: AWS4-HMAC-SHA256 Credential=AKIARJGFJ6JRYIWERSVB/20230113/us-west-2/sts/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date, Signature=03720ce9a87c7561ba20156e503175f88738f82bb5cbfe70d7db26ae4fee4a3d
2023-01-13T00:01:55.892-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Type: application/x-www-form-urlencoded
2023-01-13T00:01:55.893-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: X-Amz-Date: 20230113T050155Z
2023-01-13T00:01:55.893-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Accept-Encoding: gzip
2023-01-13T00:01:55.893-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: 
2023-01-13T00:01:55.893-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Action=GetCallerIdentity&Version=2011-06-15
2023-01-13T00:02:16.914-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] retrying request STS/GetCallerIdentity, attempt 3
2023-01-13T00:02:16.922-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] Request
2023-01-13T00:02:16.923-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: POST / HTTP/1.1
2023-01-13T00:02:16.923-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Host: sts.us-west-2.amazonaws.com
2023-01-13T00:02:16.923-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.3.6 (+https://www.terraform.io) terraform-provider-aws/4.49.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.17.3 os/macos lang/go/1.19.3 md/GOOS/darwin md/GOARCH/amd64 api/sts/1.17.7
2023-01-13T00:02:16.923-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Length: 43
2023-01-13T00:02:16.923-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Invocation-Id: 08f145f8-282f-4d57-98b4-90786f9ac4f2
2023-01-13T00:02:16.923-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Request: attempt=3; max=25
2023-01-13T00:02:16.923-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Authorization: AWS4-HMAC-SHA256 Credential=AKIARJGFJ6JRYIWERSVB/20230113/us-west-2/sts/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date, Signature=26e9e23e3b3ad1c5778947a709734e539cbe303db1ab893026e554b8a2c92907
2023-01-13T00:02:16.923-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Type: application/x-www-form-urlencoded
2023-01-13T00:02:16.923-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: X-Amz-Date: 20230113T050216Z
2023-01-13T00:02:16.923-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Accept-Encoding: gzip
2023-01-13T00:02:16.923-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: 
2023-01-13T00:02:16.923-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Action=GetCallerIdentity&Version=2011-06-15
2023-01-13T00:02:42.733-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] retrying request STS/GetCallerIdentity, attempt 4
2023-01-13T00:02:42.741-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] Request
2023-01-13T00:02:42.741-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: POST / HTTP/1.1
2023-01-13T00:02:42.741-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Host: sts.us-west-2.amazonaws.com
2023-01-13T00:02:42.741-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.3.6 (+https://www.terraform.io) terraform-provider-aws/4.49.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.17.3 os/macos lang/go/1.19.3 md/GOOS/darwin md/GOARCH/amd64 api/sts/1.17.7
2023-01-13T00:02:42.741-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Length: 43
2023-01-13T00:02:42.741-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Invocation-Id: 08f145f8-282f-4d57-98b4-90786f9ac4f2
2023-01-13T00:02:42.741-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Request: attempt=4; max=25
2023-01-13T00:02:42.741-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Authorization: AWS4-HMAC-SHA256 Credential=AKIARJGFJ6JRYIWERSVB/20230113/us-west-2/sts/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date, Signature=a687523b6b489a234c04c411bc231c8f9d7eb2e776237dc2163548f86204dd3b
2023-01-13T00:02:42.741-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Type: application/x-www-form-urlencoded
2023-01-13T00:02:42.741-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: X-Amz-Date: 20230113T050242Z
2023-01-13T00:02:42.741-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Accept-Encoding: gzip
2023-01-13T00:02:42.741-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: 
2023-01-13T00:02:42.741-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Action=GetCallerIdentity&Version=2011-06-15
2023-01-13T00:03:15.538-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] retrying request STS/GetCallerIdentity, attempt 5
2023-01-13T00:03:15.540-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] Request
2023-01-13T00:03:15.540-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: POST / HTTP/1.1
2023-01-13T00:03:15.540-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Host: sts.us-west-2.amazonaws.com
2023-01-13T00:03:15.540-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.3.6 (+https://www.terraform.io) terraform-provider-aws/4.49.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.17.3 os/macos lang/go/1.19.3 md/GOOS/darwin md/GOARCH/amd64 api/sts/1.17.7
2023-01-13T00:03:15.541-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Length: 43
2023-01-13T00:03:15.541-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Invocation-Id: 08f145f8-282f-4d57-98b4-90786f9ac4f2
2023-01-13T00:03:15.541-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Request: attempt=5; max=25
2023-01-13T00:03:15.541-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Authorization: AWS4-HMAC-SHA256 Credential=AKIARJGFJ6JRYIWERSVB/20230113/us-west-2/sts/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date, Signature=471deff18e9fbf6da912be0c65c1df606a796047fce3ef2006f651741631b3d8
2023-01-13T00:03:15.541-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Type: application/x-www-form-urlencoded
2023-01-13T00:03:15.541-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: X-Amz-Date: 20230113T050315Z
2023-01-13T00:03:15.541-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Accept-Encoding: gzip
2023-01-13T00:03:15.541-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: 
2023-01-13T00:03:15.541-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Action=GetCallerIdentity&Version=2011-06-15
2023-01-13T00:03:55.577-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] retrying request STS/GetCallerIdentity, attempt 6
2023-01-13T00:03:55.578-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] Request
2023-01-13T00:03:55.578-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: POST / HTTP/1.1
2023-01-13T00:03:55.578-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Host: sts.us-west-2.amazonaws.com
2023-01-13T00:03:55.578-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.3.6 (+https://www.terraform.io) terraform-provider-aws/4.49.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.17.3 os/macos lang/go/1.19.3 md/GOOS/darwin md/GOARCH/amd64 api/sts/1.17.7
2023-01-13T00:03:55.578-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Length: 43
2023-01-13T00:03:55.578-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Invocation-Id: 08f145f8-282f-4d57-98b4-90786f9ac4f2
2023-01-13T00:03:55.578-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Request: attempt=6; max=25
2023-01-13T00:03:55.578-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Authorization: AWS4-HMAC-SHA256 Credential=AKIARJGFJ6JRYIWERSVB/20230113/us-west-2/sts/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date, Signature=ebec532be9b3e75ea0676aee857a51051190e45dd49b383b489d0807c37f8dcb
2023-01-13T00:03:55.578-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Type: application/x-www-form-urlencoded
2023-01-13T00:03:55.578-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: X-Amz-Date: 20230113T050355Z
2023-01-13T00:03:55.578-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Accept-Encoding: gzip
2023-01-13T00:03:55.578-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: 
2023-01-13T00:03:55.578-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Action=GetCallerIdentity&Version=2011-06-15
2023-01-13T00:04:35.601-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] retrying request STS/GetCallerIdentity, attempt 7
2023-01-13T00:04:35.603-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] Request
2023-01-13T00:04:35.603-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: POST / HTTP/1.1
2023-01-13T00:04:35.603-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Host: sts.us-west-2.amazonaws.com
2023-01-13T00:04:35.603-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.3.6 (+https://www.terraform.io) terraform-provider-aws/4.49.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.17.3 os/macos lang/go/1.19.3 md/GOOS/darwin md/GOARCH/amd64 api/sts/1.17.7
2023-01-13T00:04:35.603-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Length: 43
2023-01-13T00:04:35.604-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Invocation-Id: 08f145f8-282f-4d57-98b4-90786f9ac4f2
2023-01-13T00:04:35.604-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Request: attempt=7; max=25
2023-01-13T00:04:35.604-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Authorization: AWS4-HMAC-SHA256 Credential=AKIARJGFJ6JRYIWERSVB/20230113/us-west-2/sts/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date, Signature=7d0b353d4a652012cd9e614c807dbc341c4d0fa54741482814975cbc1eea7fa6
2023-01-13T00:04:35.604-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Type: application/x-www-form-urlencoded
2023-01-13T00:04:35.604-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: X-Amz-Date: 20230113T050435Z
2023-01-13T00:04:35.604-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Accept-Encoding: gzip
2023-01-13T00:04:35.604-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: 
2023-01-13T00:04:35.604-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Action=GetCallerIdentity&Version=2011-06-15
2023-01-13T00:05:15.620-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] retrying request STS/GetCallerIdentity, attempt 8
2023-01-13T00:05:15.621-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] Request
2023-01-13T00:05:15.621-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: POST / HTTP/1.1
2023-01-13T00:05:15.621-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Host: sts.us-west-2.amazonaws.com
2023-01-13T00:05:15.621-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.3.6 (+https://www.terraform.io) terraform-provider-aws/4.49.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.17.3 os/macos lang/go/1.19.3 md/GOOS/darwin md/GOARCH/amd64 api/sts/1.17.7
2023-01-13T00:05:15.621-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Length: 43
2023-01-13T00:05:15.621-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Invocation-Id: 08f145f8-282f-4d57-98b4-90786f9ac4f2
2023-01-13T00:05:15.621-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Request: attempt=8; max=25
2023-01-13T00:05:15.621-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Authorization: AWS4-HMAC-SHA256 Credential=AKIARJGFJ6JRYIWERSVB/20230113/us-west-2/sts/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date, Signature=e92388457e9c0a4bab1bf01fed2d2af74702e51d18a9a88e0c4255bb8460b17b
2023-01-13T00:05:15.621-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Type: application/x-www-form-urlencoded
2023-01-13T00:05:15.621-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: X-Amz-Date: 20230113T050515Z
2023-01-13T00:05:15.621-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Accept-Encoding: gzip
2023-01-13T00:05:15.621-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: 
2023-01-13T00:05:15.621-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Action=GetCallerIdentity&Version=2011-06-15
2023-01-13T00:05:55.639-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] retrying request STS/GetCallerIdentity, attempt 9
2023-01-13T00:05:55.655-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] Request
2023-01-13T00:05:55.656-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: POST / HTTP/1.1
2023-01-13T00:05:55.656-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Host: sts.us-west-2.amazonaws.com
2023-01-13T00:05:55.656-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.3.6 (+https://www.terraform.io) terraform-provider-aws/4.49.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.17.3 os/macos lang/go/1.19.3 md/GOOS/darwin md/GOARCH/amd64 api/sts/1.17.7
2023-01-13T00:05:55.656-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Length: 43
2023-01-13T00:05:55.656-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Invocation-Id: 08f145f8-282f-4d57-98b4-90786f9ac4f2
2023-01-13T00:05:55.656-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Request: attempt=9; max=25
2023-01-13T00:05:55.656-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Authorization: AWS4-HMAC-SHA256 Credential=AKIARJGFJ6JRYIWERSVB/20230113/us-west-2/sts/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date, Signature=dc835ee7e51362c7ed83b148e2f0a0ae67bdde6aba946d060105749275974c54
2023-01-13T00:05:55.656-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Type: application/x-www-form-urlencoded
2023-01-13T00:05:55.656-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: X-Amz-Date: 20230113T050555Z
2023-01-13T00:05:55.656-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Accept-Encoding: gzip
2023-01-13T00:05:55.656-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: 
2023-01-13T00:05:55.656-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Action=GetCallerIdentity&Version=2011-06-15
2023-01-13T00:06:35.674-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] retrying request STS/GetCallerIdentity, attempt 10
2023-01-13T00:06:35.674-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] Request
2023-01-13T00:06:35.674-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: POST / HTTP/1.1
2023-01-13T00:06:35.674-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Host: sts.us-west-2.amazonaws.com
2023-01-13T00:06:35.674-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.3.6 (+https://www.terraform.io) terraform-provider-aws/4.49.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.17.3 os/macos lang/go/1.19.3 md/GOOS/darwin md/GOARCH/amd64 api/sts/1.17.7
2023-01-13T00:06:35.675-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Length: 43
2023-01-13T00:06:35.675-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Invocation-Id: 08f145f8-282f-4d57-98b4-90786f9ac4f2
2023-01-13T00:06:35.675-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Request: attempt=10; max=25
2023-01-13T00:06:35.675-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Authorization: AWS4-HMAC-SHA256 Credential=AKIARJGFJ6JRYIWERSVB/20230113/us-west-2/sts/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date, Signature=8c53bad02c44f7b2712f21ba02031dbf7eb8a966c497e7e6d65f761497aa134a
2023-01-13T00:06:35.675-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Type: application/x-www-form-urlencoded
2023-01-13T00:06:35.675-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: X-Amz-Date: 20230113T050635Z
2023-01-13T00:06:35.675-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Accept-Encoding: gzip
2023-01-13T00:06:35.675-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: 
2023-01-13T00:06:35.675-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Action=GetCallerIdentity&Version=2011-06-15
2023-01-13T00:07:15.698-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] retrying request STS/GetCallerIdentity, attempt 11
2023-01-13T00:07:15.699-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] Request
2023-01-13T00:07:15.699-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: POST / HTTP/1.1
2023-01-13T00:07:15.699-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Host: sts.us-west-2.amazonaws.com
2023-01-13T00:07:15.700-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.3.6 (+https://www.terraform.io) terraform-provider-aws/4.49.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.17.3 os/macos lang/go/1.19.3 md/GOOS/darwin md/GOARCH/amd64 api/sts/1.17.7
2023-01-13T00:07:15.700-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Length: 43
2023-01-13T00:07:15.700-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Invocation-Id: 08f145f8-282f-4d57-98b4-90786f9ac4f2
2023-01-13T00:07:15.700-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Request: attempt=11; max=25
2023-01-13T00:07:15.700-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Authorization: AWS4-HMAC-SHA256 Credential=AKIARJGFJ6JRYIWERSVB/20230113/us-west-2/sts/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date, Signature=25974ed5e285d7683fd873dd917e227ed0f82f5c910e579dcabac26efcffc41e
2023-01-13T00:07:15.700-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Type: application/x-www-form-urlencoded
2023-01-13T00:07:15.700-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: X-Amz-Date: 20230113T050715Z
2023-01-13T00:07:15.700-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Accept-Encoding: gzip
2023-01-13T00:07:15.700-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: 
2023-01-13T00:07:15.700-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Action=GetCallerIdentity&Version=2011-06-15
2023-01-13T00:07:55.720-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] retrying request STS/GetCallerIdentity, attempt 12
2023-01-13T00:07:55.723-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] Request
2023-01-13T00:07:55.723-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: POST / HTTP/1.1
2023-01-13T00:07:55.723-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Host: sts.us-west-2.amazonaws.com
2023-01-13T00:07:55.724-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.3.6 (+https://www.terraform.io) terraform-provider-aws/4.49.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.17.3 os/macos lang/go/1.19.3 md/GOOS/darwin md/GOARCH/amd64 api/sts/1.17.7
2023-01-13T00:07:55.724-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Length: 43
2023-01-13T00:07:55.724-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Invocation-Id: 08f145f8-282f-4d57-98b4-90786f9ac4f2
2023-01-13T00:07:55.724-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Request: attempt=12; max=25
2023-01-13T00:07:55.724-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Authorization: AWS4-HMAC-SHA256 Credential=AKIARJGFJ6JRYIWERSVB/20230113/us-west-2/sts/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date, Signature=834414c877abb3ad2fb8d3182f4f864e98868e633712c30109c21e081350b710
2023-01-13T00:07:55.724-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Type: application/x-www-form-urlencoded
2023-01-13T00:07:55.724-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: X-Amz-Date: 20230113T050755Z
2023-01-13T00:07:55.724-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Accept-Encoding: gzip
2023-01-13T00:07:55.724-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: 
2023-01-13T00:07:55.724-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Action=GetCallerIdentity&Version=2011-06-15
2023-01-13T00:08:35.747-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] retrying request STS/GetCallerIdentity, attempt 13
2023-01-13T00:08:35.747-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] Request
2023-01-13T00:08:35.747-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: POST / HTTP/1.1
2023-01-13T00:08:35.747-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Host: sts.us-west-2.amazonaws.com
2023-01-13T00:08:35.747-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.3.6 (+https://www.terraform.io) terraform-provider-aws/4.49.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.17.3 os/macos lang/go/1.19.3 md/GOOS/darwin md/GOARCH/amd64 api/sts/1.17.7
2023-01-13T00:08:35.748-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Length: 43
2023-01-13T00:08:35.748-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Invocation-Id: 08f145f8-282f-4d57-98b4-90786f9ac4f2
2023-01-13T00:08:35.748-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Request: attempt=13; max=25
2023-01-13T00:08:35.748-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Authorization: AWS4-HMAC-SHA256 Credential=AKIARJGFJ6JRYIWERSVB/20230113/us-west-2/sts/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date, Signature=e8a68ec12f4359dcfbf7484d1d7e5d19805a64c2e7c04e0f1e399f7e53db3f1d
2023-01-13T00:08:35.748-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Type: application/x-www-form-urlencoded
2023-01-13T00:08:35.748-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: X-Amz-Date: 20230113T050835Z
2023-01-13T00:08:35.748-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Accept-Encoding: gzip
2023-01-13T00:08:35.748-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: 
2023-01-13T00:08:35.748-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Action=GetCallerIdentity&Version=2011-06-15
2023-01-13T00:09:15.771-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] retrying request STS/GetCallerIdentity, attempt 14
2023-01-13T00:09:15.772-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] Request
2023-01-13T00:09:15.772-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: POST / HTTP/1.1
2023-01-13T00:09:15.772-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Host: sts.us-west-2.amazonaws.com
2023-01-13T00:09:15.772-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.3.6 (+https://www.terraform.io) terraform-provider-aws/4.49.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.17.3 os/macos lang/go/1.19.3 md/GOOS/darwin md/GOARCH/amd64 api/sts/1.17.7
2023-01-13T00:09:15.773-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Length: 43
2023-01-13T00:09:15.773-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Invocation-Id: 08f145f8-282f-4d57-98b4-90786f9ac4f2
2023-01-13T00:09:15.773-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Request: attempt=14; max=25
2023-01-13T00:09:15.773-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Authorization: AWS4-HMAC-SHA256 Credential=AKIARJGFJ6JRYIWERSVB/20230113/us-west-2/sts/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date, Signature=30130638570efb0020bf46f188a7da3372a9369d748ef5bfa82d969b52dd7895
2023-01-13T00:09:15.773-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Type: application/x-www-form-urlencoded
2023-01-13T00:09:15.773-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: X-Amz-Date: 20230113T050915Z
2023-01-13T00:09:15.773-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Accept-Encoding: gzip
2023-01-13T00:09:15.773-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: 
2023-01-13T00:09:15.773-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Action=GetCallerIdentity&Version=2011-06-15
2023-01-13T00:09:55.786-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] retrying request STS/GetCallerIdentity, attempt 15
2023-01-13T00:09:55.786-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] Request
2023-01-13T00:09:55.787-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: POST / HTTP/1.1
2023-01-13T00:09:55.787-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Host: sts.us-west-2.amazonaws.com
2023-01-13T00:09:55.787-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.3.6 (+https://www.terraform.io) terraform-provider-aws/4.49.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.17.3 os/macos lang/go/1.19.3 md/GOOS/darwin md/GOARCH/amd64 api/sts/1.17.7
2023-01-13T00:09:55.787-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Length: 43
2023-01-13T00:09:55.787-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Invocation-Id: 08f145f8-282f-4d57-98b4-90786f9ac4f2
2023-01-13T00:09:55.787-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Request: attempt=15; max=25
2023-01-13T00:09:55.787-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Authorization: AWS4-HMAC-SHA256 Credential=AKIARJGFJ6JRYIWERSVB/20230113/us-west-2/sts/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date, Signature=35d4dba4c1963ad11ccc47d43c0280dc5a208718bf47fa6438105b8ff32f78e2
2023-01-13T00:09:55.787-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Type: application/x-www-form-urlencoded
2023-01-13T00:09:55.787-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: X-Amz-Date: 20230113T050955Z
2023-01-13T00:09:55.787-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Accept-Encoding: gzip
2023-01-13T00:09:55.787-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: 
2023-01-13T00:09:55.787-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Action=GetCallerIdentity&Version=2011-06-15
2023-01-13T00:10:35.816-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] retrying request STS/GetCallerIdentity, attempt 16
2023-01-13T00:10:35.817-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] Request
2023-01-13T00:10:35.817-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: POST / HTTP/1.1
2023-01-13T00:10:35.818-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Host: sts.us-west-2.amazonaws.com
2023-01-13T00:10:35.818-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.3.6 (+https://www.terraform.io) terraform-provider-aws/4.49.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.17.3 os/macos lang/go/1.19.3 md/GOOS/darwin md/GOARCH/amd64 api/sts/1.17.7
2023-01-13T00:10:35.818-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Length: 43
2023-01-13T00:10:35.818-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Invocation-Id: 08f145f8-282f-4d57-98b4-90786f9ac4f2
2023-01-13T00:10:35.818-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Request: attempt=16; max=25
2023-01-13T00:10:35.818-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Authorization: AWS4-HMAC-SHA256 Credential=AKIARJGFJ6JRYIWERSVB/20230113/us-west-2/sts/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date, Signature=aaf5ea075bd75c536e0a2452a910ffa34ba005d505ee4aa17f9c075d64d6d7a4
2023-01-13T00:10:35.818-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Type: application/x-www-form-urlencoded
2023-01-13T00:10:35.818-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: X-Amz-Date: 20230113T051035Z
2023-01-13T00:10:35.818-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Accept-Encoding: gzip
2023-01-13T00:10:35.818-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: 
2023-01-13T00:10:35.818-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Action=GetCallerIdentity&Version=2011-06-15
2023-01-13T00:11:15.724-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] retrying request STS/GetCallerIdentity, attempt 17
2023-01-13T00:11:15.724-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: [DEBUG] [aws-sdk-go-v2] Request
2023-01-13T00:11:15.724-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: POST / HTTP/1.1
2023-01-13T00:11:15.724-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Host: sts.us-west-2.amazonaws.com
2023-01-13T00:11:15.725-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.3.6 (+https://www.terraform.io) terraform-provider-aws/4.49.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.17.3 os/macos lang/go/1.19.3 md/GOOS/darwin md/GOARCH/amd64 api/sts/1.17.7
2023-01-13T00:11:15.725-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Length: 43
2023-01-13T00:11:15.725-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Invocation-Id: 08f145f8-282f-4d57-98b4-90786f9ac4f2
2023-01-13T00:11:15.725-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Amz-Sdk-Request: attempt=17; max=25
2023-01-13T00:11:15.725-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Authorization: AWS4-HMAC-SHA256 Credential=AKIARJGFJ6JRYIWERSVB/20230113/us-west-2/sts/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date, Signature=7b11b90a5d43efcd467d00dca5184b79c9b6051ce4d0a189c850b31d92e47cda
2023-01-13T00:11:15.725-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Content-Type: application/x-www-form-urlencoded
2023-01-13T00:11:15.725-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: X-Amz-Date: 20230113T051115Z
2023-01-13T00:11:15.725-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Accept-Encoding: gzip
2023-01-13T00:11:15.725-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: 
2023-01-13T00:11:15.725-0500 [DEBUG] provider.terraform-provider-aws_v4.49.0_x5: Action=GetCallerIdentity&Version=2011-06-15

Panic Output

N/A

Expected Behavior

I should have received the plan output for provisioning an EC2 instance in AWS

Actual Behavior

The terraform plan command hangs and returns the following error message:

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-west-2.amazonaws.com/": dial tcp: lookup sts.us-west-2.amazonaws.com on 192.168.1.1:53: read udp 192.168.1.154:59718->192.168.1.1:53: i/o timeout
│ 
│   with provider["registry.terraform.io/hashicorp/aws"],
│   on main.tf line 12, in provider "aws":
│   12: provider "aws" {

From inspection of the log files, it looks like the HTTP request to https://sts.us-west-2.amazonaws.com never receives a response and times out. This request is then made 25 times in total before the terraform plan process returns the above error message.

I have verified that using the same credentials via the aws CLI, the request to STS succeeds:

$ aws sts get-caller-identity
{
    "UserId": "A*******************S",
    "Account": "0**********7",
    "Arn": "arn:aws:iam::0**********7:user/command_line_user_1  "
}

It's worth noting that the command_line_user_1 user is an IAM user with AdministrativeAccess.

I have attempted to debug a DNS related issue with dig based on the error message (although I am a little out of my depth when it comes to debugging these network issues):

$ dig @192.168.1.154 https://sts.us-west-2.amazonaws.com/ 

; <<>> DiG 9.10.6 <<>> @192.168.1.154 https://sts.us-west-2.amazonaws.com/
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached
Jites-Air:~ jiteoko$ dig @192.168.1.1 https://sts.us-west-2.amazonaws.com/ 

; <<>> DiG 9.10.6 <<>> @192.168.1.1 https://sts.us-west-2.amazonaws.com/
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 14455
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;https://sts.us-west-2.amazonaws.com/. IN A

;; Query time: 1 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Thu Jan 12 23:21:24 EST 2023
;; MSG SIZE  rcvd: 65

Steps to Reproduce

terraform init terraform plan terraform apply

Important Factoids

I am running an out-of-the-box AWS setup with no existing services provisioned. The only change that has been made to AWS prior to running terraform plan is to create the IAM user with AdministrativeAccess called command_line_user_1. I have no local Firewall running on my machine, nor on my local network

References

https://github.com/hashicorp/terraform-provider-aws/issues/26043 https://github.com/hashicorp/terraform-provider-aws/issues/16073 https://discuss.hashicorp.com/t/terraform-hangs-on-terraform-plan/7858 https://github.com/golang/go/issues/42700

References

https://github.com/hashicorp/terraform-provider-aws/issues/26043 https://github.com/hashicorp/terraform-provider-aws/issues/16073 https://discuss.hashicorp.com/t/terraform-hangs-on-terraform-plan/7858 https://github.com/golang/go/issues/42700

Would you like to implement a fix?

None

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

jgangemi commented 1 year ago

i have been experiencing this same issue and it was caused by a bad static ip being used as part of my dhcp configuration.

the following configured was configured:

8.8.8.4
8.8.8.8

the correct entry should be 8.8.4.4.

resolution time with the incorrect settings:

time host iam.amazonaws.com
iam.amazonaws.com has address 52.46.159.95
host iam.amazonaws.com  0.00s user 0.00s system 0% cpu 5.052 total

resolution time with the correct settings:

time host iam.amazonaws.com
iam.amazonaws.com has address 52.46.155.37
host iam.amazonaws.com  0.00s user 0.00s system 13% cpu 0.049 total

i'd double check your dns settings.

there might also be an error being swallowed or unhandled by the provider due to a very short timeout on dns resolution.

R-leary commented 1 year ago

@jgangemi thank you so much, now it is finally working!! how did you narrow it down to your dhcp config?

rdruzhkov commented 1 year ago

@jgangemi thank you! Got the same issue and your solution has helped.

Omar-Ebrahim-1 commented 1 year ago

For beginners like me who have no idea how to change dhcp config check this