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.85k stars 9.2k forks source link

[Bug]: error on import kms key with origin AWS_KMS #27132

Open dtelaroli opened 2 years ago

dtelaroli commented 2 years ago

Terraform Core Version

1.1.0

AWS Provider Version

4.33.0

Affected Resource(s)

Expected Behavior

Resource imported

Actual Behavior

I got the error:

Error: KMS External Key (arn:aws:kms:<region>:<account>:key/<key-id>) has invalid Origin: AWS_KMS

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

N/A

Steps to Reproduce

resource "aws_kms_external_key" "a" {
  description              = "key desc"
}

terraform import aws_kms_external_key.a arn:aws:kms:::key/

Debug Output

ws_kms_external_key.kms_key_1: Import prepared! Prepared aws_kms_external_key for import aws_kms_external_key.kms_key_1: Refreshing state... [id=4e10aa13-a8e6-40cb-914b-ac93fc4da9da] 2022-10-06T14:43:55.989-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: [DEBUG] Waiting for state to become: [success] 2022-10-06T14:43:55.990-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: [DEBUG] [aws-sdk-go] DEBUG: Request kms/DescribeKey Details: 2022-10-06T14:43:55.990-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: ---[ REQUEST POST-SIGN ]----------------------------- 2022-10-06T14:43:55.990-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: POST / HTTP/1.1 2022-10-06T14:43:55.990-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Host: kms.sa-east-1.amazonaws.com 2022-10-06T14:43:55.990-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.1.0 (+https://www.terraform.io) terraform-provider-aws/dev (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.104 (go1.18.4; darwin; arm64) 2022-10-06T14:43:55.990-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Content-Length: 48 2022-10-06T14:43:55.990-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Authorization: AWS4-HMAC-SHA256 Credential=ASIA3AM4CXP74ZQ6RZAF/20221006/sa-east-1/kms/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token;x-amz-target, Signature=bb98281a05604f66a7d977f5014ba29ef2cef9fde3a9fba82c3b5064178696b7 2022-10-06T14:43:55.990-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Content-Type: application/x-amz-json-1.1 2022-10-06T14:43:55.990-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: X-Amz-Date: 20221006T174355Z 2022-10-06T14:43:55.990-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: X-Amz-Security-Token: FwoGZXIvYXdzEEsaDML3u9Wer7oXMREs5iKSAs+3AloGngU4tnNuocoQUU5AnA9LlWw7Ee3AVYBhsJPrpXuT+AUAERSPzjJMSQ61TatF9Q33J29P4oIBRQs73L7hfOvoueorEIPkyVO2sOn+WoU0kAdPeJAjfYvXdj4LKMUDHDKdeu5elVnBWh2pJOfQwMoeOPkb3cdKZSNio2xxYxbjvJlMVphhH9U6/vbTU9VfnebaW3RJUqDy/PPe+HkkDRXjPhpcmo0lbmz4kekvRQjiD3/3tpXPBCi2sC4g+OsXcBlw1ZPg2y9iTda95uYrRv9AC5gz31RKOranmTGTlKLvyPR1F5NtHIsMLOUpiQ+KOWiygi5ArK1Zfg0Cy0jj+kwkxfu9aH31wP5+S/UJlZ8oz6H8mQYyK6P333KaHHSP9+RrCLRXPQGq9fD/GdquA+FIW9UnqIR/0Inz9V5sHML7V20= 2022-10-06T14:43:55.990-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: X-Amz-Target: TrentService.DescribeKey 2022-10-06T14:43:55.990-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Accept-Encoding: gzip 2022-10-06T14:43:55.990-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: 2022-10-06T14:43:55.990-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: {"KeyId":"4e10aa13-a8e6-40cb-914b-ac93fc4da9da"} 2022-10-06T14:43:55.990-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: ----------------------------------------------------- 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: [DEBUG] [aws-sdk-go] DEBUG: Response kms/DescribeKey Details: 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: ---[ RESPONSE ]-------------------------------------- 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: HTTP/1.1 200 OK 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Content-Length: 474 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Cache-Control: no-cache, no-store, must-revalidate, private 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Content-Type: application/x-amz-json-1.1 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Date: Thu, 06 Oct 2022 17:43:56 GMT 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Expires: 0 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Pragma: no-cache 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: X-Amzn-Requestid: 40f6ef3f-5b2b-41fa-9dce-e94800459308 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: ----------------------------------------------------- 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: [DEBUG] [aws-sdk-go] {"KeyMetadata":{"AWSAccountId":"756778449919","Arn":"arn:aws:kms:","CreationDate":1.575298308118E9,"CustomerMasterKeySpec":"SYMMETRIC_DEFAULT","Description":"","Enabled":true,"EncryptionAlgorithms":["SYMMETRIC_DEFAULT"],"KeyId":"4e10aa13-a8e6-40cb-914b-ac93fc4da9da","KeyManager":"CUSTOMER","KeySpec":"SYMMETRIC_DEFAULT","KeyState":"Enabled","KeyUsage":"ENCRYPT_DECRYPT","MultiRegion":false,"Origin":"AWS_KMS"}} 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: [DEBUG] [aws-sdk-go] DEBUG: Request kms/GetKeyPolicy Details: 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: ---[ REQUEST POST-SIGN ]----------------------------- 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: POST / HTTP/1.1 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Host: kms.sa-east-1.amazonaws.com 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.1.0 (+https://www.terraform.io) terraform-provider-aws/dev (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.104 (go1.18.4; darwin; arm64) 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Content-Length: 71 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Authorization: AWS4-HMAC-SHA256 Credential=ASIA3AM4CXP74ZQ6RZAF/20221006/sa-east-1/kms/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token;x-amz-target, Signature=072e34e6bfe1375270bc5be222fbe7e38635ab4e950df2502ab2641c821b107e 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Content-Type: application/x-amz-json-1.1 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: X-Amz-Date: 20221006T174356Z 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: X-Amz-Security-Token: FwoGZXIvYXdzEEsaDML3u9Wer7oXMREs5iKSAs+3AloGngU4tnNuocoQUU5AnA9LlWw7Ee3AVYBhsJPrpXuT+AUAERSPzjJMSQ61TatF9Q33J29P4oIBRQs73L7hfOvoueorEIPkyVO2sOn+WoU0kAdPeJAjfYvXdj4LKMUDHDKdeu5elVnBWh2pJOfQwMoeOPkb3cdKZSNio2xxYxbjvJlMVphhH9U6/vbTU9VfnebaW3RJUqDy/PPe+HkkDRXjPhpcmo0lbmz4kekvRQjiD3/3tpXPBCi2sC4g+OsXcBlw1ZPg2y9iTda95uYrRv9AC5gz31RKOranmTGTlKLvyPR1F5NtHIsMLOUpiQ+KOWiygi5ArK1Zfg0Cy0jj+kwkxfu9aH31wP5+S/UJlZ8oz6H8mQYyK6P333KaHHSP9+RrCLRXPQGq9fD/GdquA+FIW9UnqIR/0Inz9V5sHML7V20= 2022-10-06T14:43:56.092-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: X-Amz-Target: TrentService.GetKeyPolicy 2022-10-06T14:43:56.093-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Accept-Encoding: gzip 2022-10-06T14:43:56.093-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: 2022-10-06T14:43:56.093-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: {"KeyId":"4e10aa13-a8e6-40cb-914b-ac93fc4da9da","PolicyName":"default"} 2022-10-06T14:43:56.093-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: ----------------------------------------------------- 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: [DEBUG] [aws-sdk-go] DEBUG: Response kms/GetKeyPolicy Details: 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: ---[ RESPONSE ]-------------------------------------- 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: HTTP/1.1 200 OK 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Content-Length: 1570 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Cache-Control: no-cache, no-store, must-revalidate, private 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Content-Type: application/x-amz-json-1.1 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Date: Thu, 06 Oct 2022 17:43:56 GMT 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Expires: 0 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Pragma: no-cache 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: X-Amzn-Requestid: 86dd44e5-352e-449a-991f-9ef181f6a06c 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: ----------------------------------------------------- 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: [DEBUG] [aws-sdk-go] {"Policy":"{\n \"Version\" : \"2012-10-17\",\n \"Id\" : \"key-consolepolicy-3\",\n \"Statement\" : [ {\n \"Sid\" : \"Enable IAM User Permissions\",\n \"Effect\" : \"Allow\",\n \"Principal\" : {\n \"AWS\" : \"arn:aws:iam::756778449919:root\"\n },\n \"Action\" : \"kms:\",\n \"Resource\" : \"\"\n }, {\n \"Sid\" : \"Allow access for Key Administrators\",\n \"Effect\" : \"Allow\",\n \"Principal\" : {\n \"AWS\" : [ \"AIDAIHPFBKAEYYPDCULFI\", \"AIDAIAWN6M5LJMVUQBVA2\" ]\n },\n \"Action\" : [ \"kms:Create\", \"kms:Describe\", \"kms:Enable\", \"kms:List\", \"kms:Put\", \"kms:Update\", \"kms:Revoke\", \"kms:Disable\", \"kms:Get\", \"kms:Delete\", \"kms:TagResource\", \"kms:UntagResource\", \"kms:ScheduleKeyDeletion\", \"kms:CancelKeyDeletion\" ],\n \"Resource\" : \"\"\n }, {\n \"Sid\" : \"Allow use of the key\",\n \"Effect\" : \"Allow\",\n \"Principal\" : {\n \"AWS\" : \"arn:aws:iam::756778449919:user/api-hsm\"\n },\n \"Action\" : [ \"kms:Encrypt\", \"kms:Decrypt\", \"kms:ReEncrypt\", \"kms:GenerateDataKey\", \"kms:DescribeKey\" ],\n \"Resource\" : \"\"\n }, {\n \"Sid\" : \"Allow attachment of persistent resources\",\n \"Effect\" : \"Allow\",\n \"Principal\" : {\n \"AWS\" : \"arn:aws:iam::756778449919:user/api-hsm\"\n },\n \"Action\" : [ \"kms:CreateGrant\", \"kms:ListGrants\", \"kms:RevokeGrant\" ],\n \"Resource\" : \"*\",\n \"Condition\" : {\n \"Bool\" : {\n \"kms:GrantIsForAWSResource\" : \"true\"\n }\n }\n } ]\n}"} 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: [DEBUG] [aws-sdk-go] DEBUG: Request kms/GetKeyRotationStatus Details: 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: ---[ REQUEST POST-SIGN ]----------------------------- 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: POST / HTTP/1.1 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Host: kms.sa-east-1.amazonaws.com 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.1.0 (+https://www.terraform.io) terraform-provider-aws/dev (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.104 (go1.18.4; darwin; arm64) 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Content-Length: 48 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Authorization: AWS4-HMAC-SHA256 Credential=ASIA3AM4CXP74ZQ6RZAF/20221006/sa-east-1/kms/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token;x-amz-target, Signature=65790de9d1a854c45b3e315c6356afc1c550f6ffb50f3da894d0e4e0524fbded 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Content-Type: application/x-amz-json-1.1 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: X-Amz-Date: 20221006T174356Z 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: X-Amz-Security-Token: FwoGZXIvYXdzEEsaDML3u9Wer7oXMREs5iKSAs+3AloGngU4tnNuocoQUU5AnA9LlWw7Ee3AVYBhsJPrpXuT+AUAERSPzjJMSQ61TatF9Q33J29P4oIBRQs73L7hfOvoueorEIPkyVO2sOn+WoU0kAdPeJAjfYvXdj4LKMUDHDKdeu5elVnBWh2pJOfQwMoeOPkb3cdKZSNio2xxYxbjvJlMVphhH9U6/vbTU9VfnebaW3RJUqDy/PPe+HkkDRXjPhpcmo0lbmz4kekvRQjiD3/3tpXPBCi2sC4g+OsXcBlw1ZPg2y9iTda95uYrRv9AC5gz31RKOranmTGTlKLvyPR1F5NtHIsMLOUpiQ+KOWiygi5ArK1Zfg0Cy0jj+kwkxfu9aH31wP5+S/UJlZ8oz6H8mQYyK6P333KaHHSP9+RrCLRXPQGq9fD/GdquA+FIW9UnqIR/0Inz9V5sHML7V20= 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: X-Amz-Target: TrentService.GetKeyRotationStatus 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Accept-Encoding: gzip 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: {"KeyId":"4e10aa13-a8e6-40cb-914b-ac93fc4da9da"} 2022-10-06T14:43:56.127-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: ----------------------------------------------------- 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: [DEBUG] [aws-sdk-go] DEBUG: Response kms/GetKeyRotationStatus Details: 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: ---[ RESPONSE ]-------------------------------------- 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: HTTP/1.1 200 OK 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Content-Length: 28 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Cache-Control: no-cache, no-store, must-revalidate, private 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Content-Type: application/x-amz-json-1.1 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Date: Thu, 06 Oct 2022 17:43:56 GMT 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Expires: 0 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Pragma: no-cache 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: X-Amzn-Requestid: 555fc998-1689-4fd7-bf4d-737adab12c76 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: ----------------------------------------------------- 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: [DEBUG] [aws-sdk-go] {"KeyRotationEnabled":false} 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: [DEBUG] [aws-sdk-go] DEBUG: Request kms/ListResourceTags Details: 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: ---[ REQUEST POST-SIGN ]----------------------------- 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: POST / HTTP/1.1 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Host: kms.sa-east-1.amazonaws.com 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.1.0 (+https://www.terraform.io) terraform-provider-aws/dev (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.104 (go1.18.4; darwin; arm64) 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Content-Length: 48 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Authorization: AWS4-HMAC-SHA256 Credential=ASIA3AM4CXP74ZQ6RZAF/20221006/sa-east-1/kms/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token;x-amz-target, Signature=6bd6dab48cbfef8a1abbaa03e90beb9679f4e99e0a1ebb825fc43c88d6bc5e6c 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Content-Type: application/x-amz-json-1.1 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: X-Amz-Date: 20221006T174356Z 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: X-Amz-Security-Token: FwoGZXIvYXdzEEsaDML3u9Wer7oXMREs5iKSAs+3AloGngU4tnNuocoQUU5AnA9LlWw7Ee3AVYBhsJPrpXuT+AUAERSPzjJMSQ61TatF9Q33J29P4oIBRQs73L7hfOvoueorEIPkyVO2sOn+WoU0kAdPeJAjfYvXdj4LKMUDHDKdeu5elVnBWh2pJOfQwMoeOPkb3cdKZSNio2xxYxbjvJlMVphhH9U6/vbTU9VfnebaW3RJUqDy/PPe+HkkDRXjPhpcmo0lbmz4kekvRQjiD3/3tpXPBCi2sC4g+OsXcBlw1ZPg2y9iTda95uYrRv9AC5gz31RKOranmTGTlKLvyPR1F5NtHIsMLOUpiQ+KOWiygi5ArK1Zfg0Cy0jj+kwkxfu9aH31wP5+S/UJlZ8oz6H8mQYyK6P333KaHHSP9+RrCLRXPQGq9fD/GdquA+FIW9UnqIR/0Inz9V5sHML7V20= 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: X-Amz-Target: TrentService.ListResourceTags 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Accept-Encoding: gzip 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: {"KeyId":"4e10aa13-a8e6-40cb-914b-ac93fc4da9da"} 2022-10-06T14:43:56.150-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: ----------------------------------------------------- 2022-10-06T14:43:56.176-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: [DEBUG] [aws-sdk-go] DEBUG: Response kms/ListResourceTags Details: 2022-10-06T14:43:56.176-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: ---[ RESPONSE ]-------------------------------------- 2022-10-06T14:43:56.176-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: HTTP/1.1 200 OK 2022-10-06T14:43:56.176-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Content-Length: 70 2022-10-06T14:43:56.176-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Cache-Control: no-cache, no-store, must-revalidate, private 2022-10-06T14:43:56.176-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Content-Type: application/x-amz-json-1.1 2022-10-06T14:43:56.176-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Date: Thu, 06 Oct 2022 17:43:56 GMT 2022-10-06T14:43:56.176-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Expires: 0 2022-10-06T14:43:56.176-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: Pragma: no-cache 2022-10-06T14:43:56.176-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: X-Amzn-Requestid: af69785b-a1c5-4ac5-89e9-742aa64b9119 2022-10-06T14:43:56.176-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: 2022-10-06T14:43:56.176-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: 2022-10-06T14:43:56.176-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: ----------------------------------------------------- 2022-10-06T14:43:56.176-0300 [DEBUG] provider.terraform-provider-aws_v4.33.0_x5: [DEBUG] [aws-sdk-go] {"Tags":[{"TagKey":"Environment","TagValue":"PCI"}],"Truncated":false} 2022-10-06T14:43:56.176-0300 [ERROR] provider.terraform-provider-aws_v4.33.0_x5: Response contains error diagnostic: @module=sdk.proto diagnostic_detail= diagnostic_severity=ERROR diagnostic_summary="KMS External Key (4e10aa13-a8e6-40cb-914b-ac93fc4da9da) has invalid Origin: AWS_KMS" tf_req_id=5aa8466d-f99e-2895-b6ed-6da72ab4b8d8 tf_rpc=ReadResource @caller=github.com/hashicorp/terraform-plugin-go@v0.14.0/tfprotov5/internal/diag/diagnostics.go:55 tf_proto_version=5.3 tf_provider_addr=registry.terraform.io/hashicorp/aws tf_resource_type=aws_kms_external_key timestamp=2022-10-06T14:43:56.176-0300 2022-10-06T14:43:56.176-0300 [ERROR] vertex "import aws_kms_external_key.kms_key_1 result" error: KMS External Key (4e10aa13-a8e6-40cb-914b-ac93fc4da9da) has invalid Origin: AWS_KMS 2022-10-06T14:43:56.176-0300 [ERROR] vertex "aws_kms_external_key.kms_key_1 (import id \"\")" error: KMS External Key (4e10aa13-a8e6-40cb-914b-ac93fc4da9da) has invalid Origin: AWS_KMS ╷ │ Error: KMS External Key (4e10aa13-a8e6-40cb-914b-ac93fc4da9da) has invalid Origin: AWS_KMS

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

No response

github-actions[bot] commented 2 years ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

github-actions[bot] commented 1 month ago

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!