Uly.me

cloud engineer

  • Home
  • About
  • Archives
Home/Cloud/AWS CLI Encrypt Bucket

December 9, 2018

AWS CLI Encrypt Bucket

Here’s the CLI command to set server-side AES-256 encryption on a bucket.

$ aws s3api put-bucket-encryption --bucket bucket-name \
--server-side-encryption-configuration \
'{"Rules": [{"ApplyServerSideEncryptionByDefault": {"SSEAlgorithm": "AES256"}}]}'

$ aws s3api put-bucket-encryption --bucket bucket-name \ --server-side-encryption-configuration \ '{"Rules": [{"ApplyServerSideEncryptionByDefault": {"SSEAlgorithm": "AES256"}}]}'

You can apply this to any existing bucket.

Filed Under: Cloud, Linux Tagged With: aes-256, aws cli, encryption, s3, server-side

Content delivered to your email

About Me

I'm Ulysses, a Cloud Engineer at Cardinal Health based in Columbus, Ohio. I’m a certified AWS Solutions Architect. This website is my way of documenting the things I have learned in the Cloud. When off the grid, I enjoy riding my electric skateboard. I have surfed, snowboarded and played the saxophone in the past. I hope you will find this site helpful. It's powered by WordPress and hosted in AWS LightSail.

  • Cloud
  • Linux
  • Git

Copyright © 2012–2021