amazon-ec2-user-guide icon indicating copy to clipboard operation
amazon-ec2-user-guide copied to clipboard

Is documentation accurate regarding EBS encryption?

Open ghost opened this issue 5 years ago • 1 comments

Source : https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#encryption-by-default

Under the section "Permissions for IAM users", it says: "You must grant IAM users permission to call the following actions in order to use EBS encryption: kms:CreateGrant kms:Decrypt kms:DescribeKey kms:GenerateDataKeyWithoutPlainText kms:ReEncrypt"

However, in the example given below, it did not include the other IAM permissions, namely, Decrypt, DescribeKey, GenerateDataKeyWithoutPlainText, and ReEncrypt (while having the condition "kms:GrantIsForAWSResource": true still in place)

Should not then the example be as follow:

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "kms:CreateGrant", "kms:Decrypt", "kms:DescribeKey", "kms:GenerateDataKeyWithoutPlainText", "kms:ReEncrypt" "Resource": [ "arn:aws:kms:us-east-2:123456789012:key/abcd1234-a123-456d-a12b-a123b4cd56ef" ], "Condition": { "Bool": { "kms:GrantIsForAWSResource": true } } } ] }

ghost avatar Oct 20 '21 22:10 ghost

Closing this issue or pull request in advance of archiving this repo. For more information about the decision to archive this repo (and others in the 'awsdocs' org), see the announcement on the AWS News Blog.

joshbean avatar Jun 15 '23 22:06 joshbean