cloudposse / terraform-aws-vpc-flow-logs-s3-bucket

Terraform module to provision s3-backed flow logs for VPC and subnets

Home Page:https://cloudposse.com/accelerate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KMS policy does not allow key to be used with s3

bwmetcalf opened this issue · comments

Describe the Bug

The policy attached to generated key does not allow the key to be used to access s3 objects encrypted with said key. When trying to access an s3 object, an access denied error is generated.

Expected Behavior

The key policy should include at minimum

"kms:Decrypt*",
"kms:GenerateDataKey*"

Adding these actions fixes the issue.

Fixed by #33