---
title: Enabling server-side encryption with object native encryption (SSE-ONE) using the AWS CLI
description: Enable server-side encryption with object native encryption (SSE-ONE) for Scaleway Object Storage.
tags: object storage server side encryption sse one cli scaleway managed keys
dates:
  validation: 2026-02-03
  posted: 2026-02-03
---

This page explains how to use SSE-ONE with the AWS CLI. To use it with the Scaleway console, refer to the [dedicated documentation](/en/docs/object-storage/how-to/enable-sse-one/).

**S**erver-**S**ide **E**ncryption with **O**bject **N**ative **E**ncryption (SSE-ONE) is an encryption method provided by Scaleway Object Storage to protect your data at rest. It allows you to encrypt data when it is uploaded, and decrypt it when accessed, with Scaleway managing encryption keys (AES-256).

By default, SSE-ONE is applied per-upload, meaning that you must specify the encryption parameter for each `PutObject` operation. However, you can enable SSE-ONE on a bucket, so that each object uploaded is automatically encrypted at rest with an individual encryption key. Scaleway manages the creation, lifecycle, and deletion of encryption keys.

Scaleway SSE-ONE behaves similarly to Server Side Encryption with Amazon S3 managed keys (SSE-S3).

> **Note**
>
> Scaleway also supports:
>
> * [Server-Side Encryption with Customer-provided keys (SSE-C)](/en/docs/object-storage/api-cli/enable-sse-c/)
> * [Server-Side Encryption with Key Management Service (SSE-KMS)](/en/docs/object-storage/how-to/enable-sse-kms/)

## Before you start

To complete the following actions, you must have:

* A Scaleway account logged into the [console](https://console.scaleway.com)
* [Owner](/en/docs/iam/concepts/glossary/#owner) status or [IAM permissions](/en/docs/iam/concepts/glossary/#permission) allowing you to perform actions in the intended Organization
* An [Object Storage bucket](/en/docs/object-storage/how-to/create-a-bucket/)
* Installed and initialized the [AWS CLI](/en/docs/object-storage/api-cli/object-storage-aws-cli/)

## Enabling SSE-ONE on a bucket

Objects uploaded **after** enabling SSE-ONE are automatically encrypted. However, objects existing in the bucket before enabling SSE-ONE will not be encrypted, as encryption occurs during object upload.

1. In a terminal, run the command below to enable SSE-ONE on the target bucket. Make sure to replace `<your-bucket-name>` with the correct value.

   ```bash
   aws s3api put-bucket-encryption \
   --bucket <your-bucket-name> \
   --server-side-encryption-configuration '{
       "Rules": [
           {
               "ApplyServerSideEncryptionByDefault": {
                   "SSEAlgorithm": "AES256"
               }
           }
       ]
     }'
   ```

2. Run the command below to ensure the encryption was properly applied. Do not forget to replace `<your-bucket-name>` with the correct value.

   ```bash
   aws s3api get-bucket-encryption --bucket <your-bucket-name>
   ```

   An output similar to the following displays:

   ```json
   {
     "ServerSideEncryptionConfiguration": {
       "Rules": [
         {
           "ApplyServerSideEncryptionByDefault": {
             "SSEAlgorithm": "AES256"
           },
           "BucketKeyEnabled": false
         }
       ]
     }
   }
   ```

SSE-ONE is enabled on your bucket. Each object uploaded from now on will be automatically encrypted using AES-256 keys managed by Scaleway.

## Disabling SSE-ONE on a bucket

Objects uploaded **after** disabling SSE-ONE will not be automatically encrypted. However, objects existing in the bucket before disabling SSE-ONE will remain encrypted, as encryption occurs during object upload.

1. Run the command below in a terminal to disable SSE-ONE on the target bucket. Make sure to replace `<your-bucket-name>` with the correct value.

   ```bash
   aws s3api delete-bucket-encryption --bucket <your-bucket-name>
   ```

2. Run the following command to ensure the encryption was properly disabled. Do not forget to replace `<your-bucket-name>` with the correct value.

   ```bash
   aws s3api get-bucket-encryption --bucket <your-bucket-name>
   ```

   An output similar to the following displays:

   ```json
   {
     "ServerSideEncryptionConfiguration": {}
   }
   ```

SSE-ONE is now disabled, and can be [enabled again](#enabling-sse-one-on-a-bucket) at any time.
