AWS code-library documentation change
Summary
Added PowerShell V5 example for enabling S3 bucket encryption with SSE-S3
Security assessment
Documents enabling encryption as a security best practice, but does not indicate remediation of a security issue.
Diff
diff --git a/code-library/latest/ug/s3_example_s3_PutBucketEncryption_section.md b/code-library/latest/ug/s3_example_s3_PutBucketEncryption_section.md index 704d6ee66..3514a49e4 100644 --- a//code-library/latest/ug/s3_example_s3_PutBucketEncryption_section.md +++ b//code-library/latest/ug/s3_example_s3_PutBucketEncryption_section.md @@ -110,0 +111,15 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This command enables default AES256 server side encryption with Amazon S3 Managed Keys(SSE-S3) on the given bucket.** + + + $Encryptionconfig = @{ServerSideEncryptionByDefault = @{ServerSideEncryptionAlgorithm = "AES256"}} + Set-S3BucketEncryption -BucketName 'amzn-s3-demo-bucket' -ServerSideEncryptionConfiguration_ServerSideEncryptionRule $Encryptionconfig + + + * For API details, see [PutBucketEncryption](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +