Skip to content

fix KMSMasterKeyProvider to determine the default region before trying to create the requested master keys #84

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

Merged
merged 3 commits into from
Sep 14, 2018

Conversation

mattsb42-aws
Copy link
Member

Issue #, if available: #83

Description of changes:
Fix KMSMasterKeyProvider to determine the default region before trying to create the requested master keys.

We were previously trying to build the master keys before finding the default region, which would break any time a requested key ID was not a full Arn.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@mattsb42-aws mattsb42-aws requested a review from a team September 14, 2018 18:11
@@ -25,6 +25,13 @@
pytestmark = [pytest.mark.unit, pytest.mark.local]


def test_init_with_regionless_key_ids_and_region_names():
key_ids = ("alias/key_1",)
region_names = ("test-reqion-1",)
Copy link
Contributor

Choose a reason for hiding this comment

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

reqion?

@mattsb42-aws mattsb42-aws merged commit 1dedaca into aws:master Sep 14, 2018
@mattsb42-aws mattsb42-aws deleted the dev-83 branch September 14, 2018 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants