Skip to content

Instantly share code, notes, and snippets.

@michaelfoley1
Last active October 1, 2020 02:26
Show Gist options
  • Save michaelfoley1/06d649284ac90fe467cce2defe839ed9 to your computer and use it in GitHub Desktop.
Save michaelfoley1/06d649284ac90fe467cce2defe839ed9 to your computer and use it in GitHub Desktop.
s3 401 logs
2020-10-01T11:50:20.071+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5: 2020/10/01 11:50:20 [DEBUG] Waiting for state to become: [success]
2020-10-01T11:50:20.071+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5: 2020/10/01 11:50:20 [DEBUG] [aws-sdk-go] DEBUG: Request s3/HeadBucket Details:
2020-10-01T11:50:20.071+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5: ---[ REQUEST POST-SIGN ]-----------------------------
2020-10-01T11:50:20.071+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5: HEAD / HTTP/1.1
2020-10-01T11:50:20.071+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5: Host: my-tf-test-fdsajfkdslfjlk.s3.cn-north-1.amazonaws.com.cn
2020-10-01T11:50:20.071+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5: User-Agent: aws-sdk-go/1.34.14 (go1.14.5; darwin; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.12.26 (+https://www.terraform.io)
2020-10-01T11:50:20.071+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5:
2020-10-01T11:50:20.071+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5:
2020-10-01T11:50:20.071+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5: -----------------------------------------------------
2020-10-01T11:50:20.891+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5: 2020/10/01 11:50:20 [DEBUG] [aws-sdk-go] DEBUG: Response s3/HeadBucket Details:
2020-10-01T11:50:20.891+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5: ---[ RESPONSE ]--------------------------------------
2020-10-01T11:50:20.891+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5: HTTP/1.1 401 Unauthorized
2020-10-01T11:50:20.891+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5: Connection: close
2020-10-01T11:50:20.891+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5: Transfer-Encoding: chunked
2020-10-01T11:50:20.891+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5: Content-Type: application/xml
2020-10-01T11:50:20.891+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5: Date: Thu, 01 Oct 2020 01:50:20 GMT
2020-10-01T11:50:20.891+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5: Server: AmazonS3
2020-10-01T11:50:20.891+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5: X-Amz-Id-2: <REDACTED>
2020-10-01T11:50:20.891+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5: X-Amz-Request-Id: <REDACTED>
2020-10-01T11:50:20.891+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5:
2020-10-01T11:50:20.891+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5:
2020-10-01T11:50:20.891+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5:
2020-10-01T11:50:20.891+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5: -----------------------------------------------------
2020-10-01T11:50:20.891+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5: 2020/10/01 11:50:20 [DEBUG] [aws-sdk-go]
2020-10-01T11:50:20.891+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5: 2020/10/01 11:50:20 [DEBUG] [aws-sdk-go] DEBUG: Validate Response s3/HeadBucket failed, attempt 0/25, error Unauthorized: Unauthorized
2020-10-01T11:50:20.891+1000 [DEBUG] plugin.terraform-provider-aws_v3.5.0_x5: status code: 401, request id: <REDACTED>, host id: <REDACTED>
2020/10/01 11:50:20 [ERROR] <root>: eval: *terraform.EvalRefresh, err: error getting S3 Bucket location: Unauthorized: Unauthorized
status code: 401, request id: <REDACTED>, host id: <REDACTED>
2020/10/01 11:50:20 [ERROR] <root>: eval: *terraform.EvalSequence, err: error getting S3 Bucket location: Unauthorized: Unauthorized
status code: 401, request id: <REDACTED>, host id: <REDACTED>
2020/10/01 11:50:20 [TRACE] [walkRefresh] Exiting eval tree: aws_s3_bucket.b
2020/10/01 11:50:20 [TRACE] vertex "aws_s3_bucket.b": visit complete
2020/10/01 11:50:20 [TRACE] vertex "aws_s3_bucket.b": dynamic subgraph encountered errors
2020/10/01 11:50:20 [TRACE] vertex "aws_s3_bucket.b": visit complete
2020/10/01 11:50:20 [TRACE] dag/walk: upstream of "provider.aws (close)" errored, so skipping
2020/10/01 11:50:20 [TRACE] statemgr.Filesystem: removing lock metadata file <REDACTED>
Error: error getting S3 Bucket location: Unauthorized: Unauthorized
2020/10/01 11:50:20 [TRACE] statemgr.Filesystem: unlocking <REDACTED> using fcntl flock
status code: 401, request id: <REDACTED>, host id: <REDACTED>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment