Skip to content

Comments

Shared encrypted snapshot with default kms#55

Open
churtado-edrans wants to merge 3 commits intoawslabs:masterfrom
churtado-edrans:SharedEncryptedSnapshot
Open

Shared encrypted snapshot with default kms#55
churtado-edrans wants to merge 3 commits intoawslabs:masterfrom
churtado-edrans:SharedEncryptedSnapshot

Conversation

@churtado-edrans
Copy link

Issue
With the tool, it's impossible to share snapshots with default KMS key(AWS owner).

Description of changes:

  • Create a function to evaluating if ARN key is (AWS or Custom).
  • if the owner is AWS, create a copy with a new key and share this.

@churtado-edrans churtado-edrans changed the title Shared encrypted snapshot Shared encrypted snapshot with default kms Dec 10, 2019
#print(response)
kms_owner = response['KeyMetadata']['KeyManager']

if kms_owner != 'AWS':

Choose a reason for hiding this comment

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

Replace this with return kms_owner == 'AWS' ?

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.

3 participants