AWS - S3 with Customer Managed Keys
In this post, We will see how to create a KMS key and use that key to encrypt the S3 bucket. We will see what happens when uploading an object without the key, with default encryption key, and with the KMS key which we created.
Let's create a KMS key.
The above policy will deny uploading to the S3 when the Server Side Encryption is not "AES256".
I am trying to upload with the default S3 encryption key and it fails.
So, We are using AWS KMS. To upload the objects using customer KMS we need to upload the policy as below.
Comments
Post a Comment