Skip to content

Instantly share code, notes, and snippets.

@arzietlow
Created August 8, 2022 20:00
Show Gist options
  • Save arzietlow/b59d192dec8af27d725aec4f15b8cb4c to your computer and use it in GitHub Desktop.
Save arzietlow/b59d192dec8af27d725aec4f15b8cb4c to your computer and use it in GitHub Desktop.
Terraform AWS provider error - KMS key tag update propagation timeout
Error: error waiting for KMS Key (XXXXXXXXXXXXXXXXXX) tag propagation: timeout while waiting for state to become 'TRUE' (last state: 'FALSE', timeout: 10m0s)
on test.tf line 189, in resource "aws_kms_key" "tag_timeout_test":
189: resource "aws_kms_key" "tag_timeout_test" {
2022/08/08 18:45:51 [DEBUG] [aws-sdk-go] DEBUG: Request dynamodb/GetItem Details:
---[ REQUEST POST-SIGN ]-----------------------------
POST / HTTP/1.1
Host: dynamodb.us-east-1.amazonaws.com
User-Agent: aws-sdk-go/1.31.9 (go1.14.7; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.13.4
Content-Length: 200
Accept-Encoding: identity
Authorization: AWS4-HMAC-SHA256 Credential=XXXXXXXXXXXXXXXXXX/20220808/us-east-1/dynamodb/aws4_request, SignedHeaders=accept-encoding;content-length;content-type;host;x-amz-date;x-amz-security-token;x-amz-target, Signature=XXXXXXXXXXXXXXXXXX
Content-Type: application/x-amz-json-1.0
X-Amz-Date: 20220808T184551Z
X-Amz-Security-Token: XXXXXXXXXXXXXXXXXX
X-Amz-Target: DynamoDB_20120810.GetItem
{"ConsistentRead":true,"Key":{"LockID":{"S":"nwm-ix-terraform-state/ENVs/infrastructure/az-test-poc10/terraform.tfstate"}},"ProjectionExpression":"LockID, Info","TableName":"Terraform_State"}
-----------------------------------------------------
2022/08/08 18:45:51 [DEBUG] [aws-sdk-go] DEBUG: Response dynamodb/GetItem Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 200 OK
Connection: close
Content-Length: 454
Content-Type: application/x-amz-json-1.0
Date: Mon, 08 Aug 2022 18:45:51 GMT
Server: Server
X-Amz-Crc32: 314685602
X-Amzn-Requestid: XXXXXXXXXXXXXXXXXX
-----------------------------------------------------
2022/08/08 18:45:51 [DEBUG] [aws-sdk-go] {"Item":{"LockID":{"S":"nwm-ix-terraform-state/ENVs/infrastructure/az-test-poc10/terraform.tfstate"},"Info":{"S":"{\"ID\":\"XXXXXXXXXXXXXXXXXX\",\"Operation\":\"OperationTypeApply\",\"Info\":\"\",\"Who\":\"root@runner-bfrogvqy-project-40801-concurrent-1\",\"Version\":\"0.13.4\",\"Created\":\"2022-08-08T18:35:41.022260488Z\",\"Path\":\"nwm-ix-terraform-state/ENVs/infrastructure/az-test-poc10/terraform.tfstate\"}"}}}
2022/08/08 18:45:51 [DEBUG] [aws-sdk-go] DEBUG: Request dynamodb/DeleteItem Details:
---[ REQUEST POST-SIGN ]-----------------------------
POST / HTTP/1.1
Host: dynamodb.us-east-1.amazonaws.com
User-Agent: aws-sdk-go/1.31.9 (go1.14.7; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.13.4
Content-Length: 140
Accept-Encoding: identity
Authorization: AWS4-HMAC-SHA256 Credential=XXXXXXXXXXXXXXXXXX/20220808/us-east-1/dynamodb/aws4_request, SignedHeaders=accept-encoding;content-length;content-type;host;x-amz-date;x-amz-security-token;x-amz-target, Signature=XXXXXXXXXXXXXXXXXX
Content-Type: application/x-amz-json-1.0
X-Amz-Date: 20220808T184551Z
X-Amz-Security-Token: XXXXXXXXXXXXXXXXXX
X-Amz-Target: DynamoDB_20120810.DeleteItem
{"Key":{"LockID":{"S":"nwm-ix-terraform-state/ENVs/infrastructure/az-test-poc10/terraform.tfstate"}},"TableName":"Terraform_State"}
-----------------------------------------------------
2022/08/08 18:45:51 [DEBUG] [aws-sdk-go] DEBUG: Response dynamodb/DeleteItem Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 200 OK
Connection: close
Content-Length: 2
Content-Type: application/x-amz-json-1.0
Date: Mon, 08 Aug 2022 18:45:51 GMT
Server: Server
X-Amz-Crc32: 2745614147
X-Amzn-Requestid: XXXXXXXXXXXXXXXXXX
-----------------------------------------------------
2022/08/08 18:45:51 [DEBUG] [aws-sdk-go] {}
2022-08-08T18:45:51.867Z [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-08-08T18:45:51.872Z [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/hashicorp/aws/4.9.0/linux_amd64/terraform-provider-aws_v4.9.0_x5 pid=218
2022-08-08T18:45:51.872Z [DEBUG] plugin: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment