Amazon S3 Express One Zone, a high-performance, single-Availability Zone (AZ) S3 storage class, now helps server-side encryption with AWS Key Management Service (KMS) keys (SSE-KMS). S3 Categorical One Zone already encrypts all objects saved in S3 directory buckets with Amazon S3 managed keys (SSE-S3) by default. Beginning right this moment, you should utilize AWS KMS customer managed keys to encrypt information at relaxation, with no influence on efficiency. This new encryption functionality provides you an extra choice to satisfy compliance and regulatory necessities when utilizing S3 Categorical One Zone, which is designed to ship constant single-digit millisecond information entry to your most often accessed information and latency-sensitive purposes.
S3 listing buckets permit you to specify just one buyer managed key per bucket for SSE-KMS encryption. As soon as the shopper managed secret’s added, you can not edit it to make use of a brand new key. Then again, with S3 normal function buckets, you should utilize a number of KMS keys both by altering the default encryption configuration of the bucket or throughout S3 PUT requests. When utilizing SSE-KMS with S3 Categorical One Zone, S3 Bucket Keys are all the time enabled. S3 Bucket Keys are free and scale back the variety of requests to AWS KMS by as much as 99%, optimizing each efficiency and prices.
Utilizing SSE-KMS with Amazon S3 Categorical One Zone
To point out you this new functionality in motion, I first create an S3 listing bucket within the Amazon S3 console following the steps to create a S3 directory bucket and use apne1-az4
because the Availability Zone. In Base identify, I enter s3express-kms
and a suffix that features the Availability Zone ID wich is mechanically added to create the ultimate identify. Then, I choose the checkbox to acknowledge that Information is saved in a single Availability Zone.
Within the Default encryption part, I select Server-side encryption with AWS Key Administration Service keys (SSE-KMS). Underneath AWS KMS Key I can Select out of your AWS KMS keys, Enter AWS KMS key ARN, or Create a KMS key. For this instance, I beforehand created an AWS KMS key, which I chosen from the listing, after which select Create bucket.
Now, any new object I add to this S3 listing bucket will probably be mechanically encrypted utilizing my AWS KMS key.
SSE-KMS with Amazon S3 Categorical One Zone in motion
To make use of SSE-KMS with S3 Categorical One Zone by way of the AWS Command Line Interface (AWS CLI), you want an AWS Identity and Access Management (IAM) user or role with the next policy . This coverage permits the CreateSession API operation, which is critical to efficiently add and obtain encrypted recordsdata to and out of your S3 listing bucket.
With the PutObject command, I add a brand new file named confidential-doc.txt
to my S3 listing bucket.
As a hit of the earlier command I obtain the next output:
Checking the article’s properties with HeadObject command, I see that it’s encrypted utilizing SSE-KMS with the important thing that I created earlier than:
I get the next output:
I obtain the encrypted object with GetObject:
As my session has the mandatory permissions, the article is downloaded and decrypted mechanically.
For this second check, I exploit a special IAM person with a coverage that’s not granted the mandatory KMS key permissions to obtain the article. This try fails with an AccessDenied error, demonstrating that the SSE-KMS encryption is functioning as meant.
This demonstration exhibits how SSE-KMS works seamlessly with S3 Categorical One Zone, offering an extra layer of safety whereas sustaining ease of use for approved customers.
Issues to know
Getting began – You possibly can allow SSE-KMS for S3 Categorical One Zone utilizing the Amazon S3 console, AWS CLI, or AWS SDKs. Set the default encryption configuration of your S3 listing bucket to SSE-KMS and specify your AWS KMS key. Keep in mind, you possibly can solely use one buyer managed key per S3 listing bucket for its lifetime.
Areas – S3 Categorical One Zone assist for SSE-KMS utilizing buyer managed keys is obtainable in all AWS Regions where S3 Express One Zone is currently available.
Efficiency – Utilizing SSE-KMS with S3 Categorical One Zone doesn’t influence request latency. You’ll proceed to expertise the identical single-digit millisecond information entry.
Pricing – You pay AWS KMS fees to generate and retrieve information keys used for encryption and decryption. Go to the AWS KMS pricing page for extra particulars. As well as, when utilizing SSE-KMS with S3 Categorical One Zone, S3 Bucket Keys are enabled by default for all information airplane operations apart from CopyObject and UploadPartCopy, and may’t be disabled. This reduces the variety of requests to AWS KMS by as much as 99%, optimizing each efficiency and prices.
AWS CloudTrail integration – You possibly can audit SSE-KMS actions on S3 Categorical One Zone objects utilizing AWS CloudTrail. Study extra about that in my previous blog post.
– Eli.