Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

r/kms_key: Retry getting rotation status #1818

Merged
merged 1 commit into from
Oct 9, 2017
Merged

r/kms_key: Retry getting rotation status #1818

merged 1 commit into from
Oct 9, 2017

Conversation

radeksimko
Copy link
Member

This is to address the following test failure:

=== RUN   TestAccDataSourceAwsKmsCiphertext_basic
--- FAIL: TestAccDataSourceAwsKmsCiphertext_basic (31.03s)
    testing.go:434: Step 0 error: Error applying: 1 error(s) occurred:
        
        * aws_kms_key.foo: 1 error(s) occurred:
        
        * aws_kms_key.foo: NotFoundException: Key 'arn:aws:kms:us-west-2:*******:key/20505b0e-764f-4ef5-8f1b-73a2686fd11b' does not exist
            status code: 400, request id: a92026f9-a994-11e7-bbbb-41668ba48bea

Snippet from debug log:

2017/10/05 06:16:00 [DEBUG] [aws-sdk-go] DEBUG: Response kms/DescribeKey Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 200 OK
Connection: close
Content-Length: 383
Content-Type: application/x-amz-json-1.1
Date: Thu, 05 Oct 2017 06:16:01 GMT
Server: Server
X-Amzn-Requestid: a91885e4-a994-11e7-9579-2da1021b9d1d


-----------------------------------------------------
2017/10/05 06:16:00 [DEBUG] [aws-sdk-go] {"KeyMetadata":{"AWSAccountId":"*REDACTED*","Arn":"arn:aws:kms:us-west-2:*REDACTED*:key/20505b0e-764f-4ef5-8f1b-73a2686fd11b","CreationDate":1.507184161473E9,"Description":"tf-test-acc-data-source-aws-kms-ciphertext-basic","Enabled":true,"KeyId":"20505b0e-764f-4ef5-8f1b-73a2686fd11b","KeyManager":"CUSTOMER","KeyState":"Enabled","KeyUsage":"ENCRYPT_DECRYPT","Origin":"AWS_KMS"}}

2017/10/05 06:16:00 [DEBUG] [aws-sdk-go] DEBUG: Response kms/GetKeyRotationStatus Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 400 Bad Request
Connection: close
Content-Length: 139
Content-Type: application/x-amz-json-1.1
Date: Thu, 05 Oct 2017 06:16:01 GMT
Server: Server
X-Amzn-Requestid: a92026f9-a994-11e7-bbbb-41668ba48bea


-----------------------------------------------------
2017/10/05 06:16:00 [DEBUG] [aws-sdk-go] {"__type":"NotFoundException","message":"Key 'arn:aws:kms:us-west-2:*REDACTED*:key/20505b0e-764f-4ef5-8f1b-73a2686fd11b' does not exist"}

@radeksimko radeksimko added the bug Addresses a defect in current functionality. label Oct 5, 2017
Copy link
Contributor

@catsby catsby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@radeksimko radeksimko merged commit c81df43 into master Oct 9, 2017
@radeksimko radeksimko deleted the b-kms-retry branch October 9, 2017 19:41
@ghost
Copy link

ghost commented Apr 10, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants