What UpdateObjectEncryption Changes on an Amazon S3 Object - What It Preserves and Which Objects Still Need a Copy
First Published:
Last Updated:
UpdateObjectEncryption API, which allows you to change the encryption type and key of encrypted objects without moving the data. This article addresses four key questions regarding this API: What encryption changes can be made to which objects? What information is preserved during the change? What does it not accept? What does not propagate? Finally, the article lists the cases that still need a copy.In conclusion, the API accepts two source encryption methods: server-side encryption with Amazon S3-managed keys (SSE-S3) and server-side encryption with AWS KMS keys (SSE-KMS). Only SSE-KMS can be specified as the target. The API does not accept objects that are unencrypted, or objects encrypted with dual-layer server-side encryption with AWS KMS keys (DSSE-KMS), or objects encrypted with customer-provided keys (SSE-C). When making changes, the storage class, creation date, last modified date, ETag, and checksum are preserved, and the data itself is not copied. For live replication destinations, replica events will not be triggered. To change the destination object, you must submit a separate request to the destination bucket. If no version ID is specified, only the current version will be changed. For Object Lock, an object with a governance-mode retention period or a legal hold can be changed after the retention period or hold is removed. This API cannot be used on objects with an Object Lock compliance-mode retention period. By default, the target key is limited to keys in the same account as the bucket.
This article reviewed the materials on November 30, 2026 (Japan Standard Time). This date marks the first day of AWS re:Invent 2026 (November 30, 2026 – December 4, 2026), but any announcements made during the conference are not included in this article. This article is not based on hands-on testing. Pricing information is not included.
Related articles on this site:
- Encryption Controls by Service on AWS Storage - What Is On by Default, Which Key You Can Choose, and What Turning It On Does Not Re-encrypt
- Object Lock, Legal Holds, and Event Holds in Amazon S3 - Who Can Shorten a Retention Period, What a Hold Adds, and When the Retention Clock Starts
- Amazon S3 Security and Access Control Guide - Bucket Policies, IAM, Access Points, Block Public Access, and Encryption
- AWS Security Defaults History - Block Public Access, Default Encryption, IMDSv2, and How Far Each Changed Default Reached
- Default Checksums and Data Integrity in Amazon S3 - What the SDK Computes, What S3 Stores, and Why the Default Algorithm Depends on Which SDK You Use
- AWS KMS Envelope Encryption and Data Key Caching Patterns - Design Decisions for the AWS Encryption SDK and Multi-Region Keys
Table of Contents
- 1. Scope and Assumptions
- 2. Combinations It Can Change
- 3. What It Preserves
- 4. Permissions and Key Requirements
- 5. Versions and Object Lock
- 6. Replication
- 7. Changing Objects in Bulk and Checking the Records
- 8. The Errors Section and Cases That Still Need a Copy
- 9. Frequently Asked Questions about UpdateObjectEncryption
- 10. Summary
- 11. References
1. Scope and Assumptions
This chapter first defines the intended audience, the scope of this article, the relevant source materials, and the notation used. It also describes how changing a bucket's default encryption differs from this API.1.1 Intended Audience
This article is intended for:- Operations and design professionals who want to migrate existing objects in S3 from SSE-S3 to SSE-KMS, or to a different customer managed key.
- Individuals whose audit or key rotation policies require consistent encryption for stored data.
- Those who want to understand what
UpdateObjectEncryptionsuccessfully accomplishes, what can fail, and how replication, versioning, and Object Lock functionality interact before executing the operation.
1.2 Scope of This Article
This article covers the following topics:- Permissible and impermissible combinations of changes.
- Elements that remain unchanged during modifications.
- Required permissions and the conditions on the target key.
- Relationships with versions, Object Lock, and replication.
- Key considerations when making bulk changes using S3 Batch Operations, and what is recorded as a result.
- All messages listed in the Errors section of the API reference, and situations where copies are still required.
This article does not cover:
- A comprehensive overview of S3 encryption, or the default encryption settings for each storage service. This is covered in the existing articles "Encryption Controls by Service on AWS Storage" and "Amazon S3 Security and Access Control Guide."
- The mechanics of envelope encryption. This is covered in the existing article "AWS KMS Envelope Encryption and Data Key Caching Patterns."
- The mechanics of Object Lock. This is covered in the existing article "Object Lock, Legal Holds, and Event Holds in Amazon S3."
- Detailed information regarding the configuration that disables SSE-C by default. This is covered in the existing article "Amazon S3 Security and Access Control Guide."
- Pricing.
1.3 Materials Reviewed
This article is based on the following materials, reviewed on November 30, 2026 (Japan Standard Time):- The "Updating server-side encryption for existing data" page of the S3 User Guide (hereinafter, the User Guide page).
- The "Update object encryption" and "Creating a Batch Operations job to update object encryption" pages of the same guide (hereinafter, the Batch Operations pages).
- The
UpdateObjectEncryptionpage of the S3 API Reference (hereinafter, the API reference). - The Amazon S3 page of the Service Authorization Reference.
- The "Amazon S3 CloudTrail events" page of the S3 User Guide.
- The AWS What's New post dated January 29, 2026.
- The AWS Storage Blog post, "Updating encryption on existing Amazon S3 objects with S3 Batch Operations" (dated October 21, 2026, hereinafter, the Storage Blog).
- The page on specifying SSE-KMS, the page on S3 Event Notifications event types, and the page on events sent to EventBridge, all in the S3 User Guide.
- The AWS What's New post dated April 6, 2026, on the setting that disables SSE-C by default.
In this article, the page means the User Guide page unless stated otherwise.
1.4 Notation
This article marks where each statement comes from with the following four notations:| Notation | Meaning |
|---|---|
| Stated | A sentence with this content appears in the User Guide, the Batch Operations pages, the API reference, or the Service Authorization Reference. |
| Storage Blog only | The Storage Blog states it, but no sentence with the same content was found in the User Guide or the API reference. |
| Not documented | None of the pages reviewed for this article states it. This article does not fill it in by guessing. |
| Inference | This article derives it from the text of the pages; no sentence states it. |
Sentences without a notation are stated on the pages.
1.5 Differences Between Changing the Default Encryption and Modifying Existing Encryption
Changing a bucket's default encryption does not alter the encryption of objects already stored within it. This remains the case. The existing articles AWS Security Defaults History and Encryption Controls by Service on AWS Storage cover this point. The Storage Blog also states that changing the default encryption only affects new objects and does not impact existing ones. TheUpdateObjectEncryption API is not used to modify the default settings; instead, it is used to change the encryption of individual, already-stored objects.The S3 User Guide page on specifying SSE-KMS includes, as of the review date, information on how to copy existing objects within S3 using S3 Batch Operations and apply SSE-KMS encryption. The option to re-encrypt objects through copying has not been removed. Section 8.2 outlines scenarios where copying may still be necessary.
The ability to modify the encryption of existing data varies by service. For example, with Amazon OpenSearch Service, index-level keys can only be enabled when creating a new domain, and once enabled, cannot be reversed. This contrast is covered in Encrypting Each Amazon OpenSearch Service Index With Its Own Key - What the Key Covers, What Stays on the Domain Key, and What Disabling It Does.
One prerequisite is worth noting. According to the What's New post dated April 6, 2026, S3 is rolling out a setting for new general purpose buckets that disables SSE-C by default. For accounts that do not have any objects encrypted with SSE-C, this setting will disable SSE-C for new writes, even on existing buckets. This article does not cover the details of this setting.
2. Combinations It Can Change
This chapter lists which changesUpdateObjectEncryption accepts, from what to what.2.1 Two Source Types, One Target Type
The page lists three use cases for this API:- Converting objects encrypted with SSE-S3 to SSE-KMS.
- Utilizing S3 Bucket Keys for objects encrypted with object-level SSE-KMS.
- Replacing a customer managed key used for data encryption with a different customer managed key. The page states this is for aligning with a customer's own key rotation policies.
The source encryption type is either SSE-S3 or SSE-KMS, and the target encryption type is SSE-KMS for every use case. The body of the API request can only contain the
SSEKMS element. Within that element, you specify the ARN of the key using KMSKeyArn and whether to use S3 Bucket Keys using BucketKeyEnabled.The page indicates that this API uses envelope encryption. It re-encrypts the data key used to encrypt the object's data using the new encryption type. This reads as meaning that the object's data itself is not re-encrypted (Inference).
The UpdateObjectEncryption API operation uses envelope encryption to re-encrypt the data key used to encrypt and decrypt your object with your newly specified server-side encryption type.
The page states that this API is available for all storage classes supported by general purpose buckets.
2.2 Source Encryption Types Not Accepted
The page states that this API does not accept unencrypted objects, objects encrypted with DSSE-KMS, or objects encrypted with SSE-C as source objects.Source objects that are unencrypted, or encrypted with either dual-layer server-side encryption with AWS KMS keys (DSSE-KMS) or customer-provided encryption keys (SSE-C) aren't supported by this operation.
Unencrypted objects were probably written before S3 began applying SSE-S3 by default to every bucket (Inference). The existing article AWS Security Defaults History covers when this default setting was implemented.
2.3 What Cannot Be the Target
SSE-S3 cannot be specified as the target. The page states this in the following sentence. The second half of the sentence is broken, but this article quotes it as it appears on the page.Additionally, you cannot specify SSE-S3 as the requested new encryption type UpdateObjectEncryption request.
The Errors section of the API reference includes the following message, which is displayed when an incorrect encryption type is used:
Requests that modify an object encryption configuration require a valid new encryption type. Valid values are SSEKMS. Modify the request to specify SSE-KMS for the updated encryption type, and then try again.
DSSE-KMS and SSE-C also cannot be specified as the target. The Errors section contains a message indicating that changes to DSSE-KMS or SSE-C are not accepted. Therefore, it is not possible with this API to revert from SSE-KMS to SSE-S3, or to migrate from SSE-KMS to DSSE-KMS.
The pages do not document whether the AWS managed key
aws/s3 can be specified as the target. The page describes key changes in the context of changing customer managed keys.2.4 Target Buckets
The API reference notes that this API cannot be used with directory buckets or S3 on Outposts buckets; it is only applicable to general purpose buckets.This operation is not supported for directory buckets or Amazon S3 on Outposts buckets.
The What's New post states that this API is available in all AWS Regions.

3. What It Preserves
This chapter lists what remains unchanged when encryption methods are altered.3.1 No Data Movement
The page states that this API changes the encryption type without moving the data. The data is not copied. Objects archived in S3 Glacier Flexible Retrieval and S3 Glacier Deep Archive will not be restored. Objects in S3 Intelligent-Tiering will not be moved between tiers.Amazon S3 performs this encryption type update without any data movement.
The page also states that this operation is typically completed in milliseconds, regardless of object size or storage class. This applies to objects in S3 Glacier Flexible Retrieval and S3 Glacier Deep Archive as well. The page, the API reference, and the What's New post all state that this change is performed atomically.
3.2 Metadata
The page states that this API retains all metadata properties for objects. Examples include storage class, creation date, last modified date, ETag, and checksum.Additionally, the UpdateObjectEncryption operation preserves all object metadata properties, including the storage class, creation date, last modified date, ETag, and checksum properties.
The mechanism for checksums in S3 is covered in the existing article "Default Checksums and Data Integrity in Amazon S3." The Storage Blog also lists tags and access control lists (ACLs) as properties that are retained (Storage Blog only). What's New states that using the API with S3 Batch Operations preserves object properties and S3 Lifecycle eligibility.
3.3 Intelligent-Tiering Tiers
The page states that this operation will not be counted as access within S3 Intelligent-Tiering. Objects residing in the Infrequent Access or Archive Instant Access tiers will not be moved back to the Frequent Access tier, even if their encryption settings are changed.This operation doesn't count as an access for S3 Intelligent-Tiering, so objects in the Infrequent Access tier or the Archive Instant Access tier won't automatically tier back to the Frequent Access tier if you change the server-side encryption type of your object.
3.4 Differences from Re-encrypting with a Copy
The Storage Blog highlights the drawbacks of the previous method, re-encrypting objects using S3 Batch Operations' Copy feature, as follows (everything in this section is Storage Blog only):Though functional, this approach moves data, is not atomic, and resets object metadata timestamps.
According to the Storage Blog, when the timestamps change, S3 Lifecycle eligibility starts over. Objects in S3 Intelligent-Tiering revert to the Frequent Access tier. Objects in S3 Intelligent-Tiering's Archive Access and Deep Archive Access tiers require restoration before the copy operation can be performed. In buckets with versioning enabled, each copy operation creates a new version. The Copy operation is only supported for objects up to 5 GB in size; larger objects require separate handling.
UpdateObjectEncryption (as described in Sections 3.1 through 3.3) does not change the date or tier, and does not require restoration of archived objects. Versioning is discussed in Section 5.1.4. Permissions and Key Requirements
This chapter lists the required permissions and the conditions on the target key.4.1 Required Permissions
The page and the API reference list the following five permissions required to call this API:s3:UpdateObjectEncryptionkms:Encryptkms:Decryptkms:GenerateDataKeykms:ReEncrypt*
If using AWS Organizations and a customer managed key from a different account within the organization, the
organizations:DescribeAccount permission is also required.Regarding execution with S3 Batch Operations, the Batch Operations page instructs you to apply example policies to IAM principals (users, roles, and groups). Separate pages provide details on the trust policy and permission policy for the IAM role assumed by Batch Operations. The example policy lists, in addition to the aforementioned
s3:UpdateObjectEncryption and the four KMS permissions, s3:GetObject and s3:GetObjectVersion, as well as s3:PutObject for writing manifests and completion reports, and s3:PutInventoryConfiguration for generating manifests. As of the review date, the example policy contains discrepancies between the resource bucket name placeholders and the descriptions provided. This article only lists the required actions and does not reproduce the example policy. The Storage Blog includes similar permissions within the inline policy for the Batch Operations role.4.2 Key Specification
The page requests that you provide the complete ARN (Amazon Resource Name) for the key. The alias name and the alias ARN are not acceptable.You must provide a full KMS key ARN in your UpdateObjectEncryption request. You can't use an alias name or alias ARN.
The note accompanying the AWS CLI example on the page also states that the key ID and the key alias are not supported. The page's AWS CLI example shows how to convert a single object to use a combination of SSE-KMS and S3 Bucket Keys.
aws s3api update-object-encryption \
--bucket amzn-s3-demo-bucket \
--key index.html \
--object-encryption '{"SSEKMS": { "KMSKeyArn": "arn:aws:kms:us-east-1:111122223333:key/f12a345a-678e-9bbb-1025-62e317037583", "BucketKeyEnabled": true }}'
The page then continues with instructions on how to verify the encryption type after the change using the
head-object command.4.3 Account Ownership of Keys
By default, requests to specify a customer managed key are limited to keys owned by the account that owns the bucket.By default, all UpdateObjectEncryption requests that specify a customer-managed KMS key are restricted to KMS keys that are owned by the bucket owner's AWS account.
However, if you are using AWS Organizations, you can request AWS Support to allow keys owned by other member accounts within your organization. These default and exception scenarios should be considered together. The Errors section of the API reference includes the following sentence as an
AccessDenied message.The AWS KMS key in the request must be owned by the same account as the bucket.
Reading only this message might suggest that keys from other accounts cannot be used. However, the same Errors section also contains two messages related to accounts that have been approved to use keys within the organization. One message applies when the approved account does not belong to the organization. The other applies when the specified key is not within the same organization as the bucket. No page explicitly states that keys from outside the organization can be used.
As a prerequisite, the Storage Blog lists a customer managed key in the same AWS Region as the bucket (Storage Blog only).
4.4 Condition Keys
TheUpdateObjectEncryption entry in the Service Authorization Reference does not have a dedicated condition key for this operation. Instead, it utilizes condition keys shared with other operations. These include s3:x-amz-server-side-encryption, s3:x-amz-server-side-encryption-aws-kms-key-id, s3:ExistingObjectTag/<key>, s3:ResourceAccount, and s3:TlsVersion. The pages do not document whether these condition keys evaluate the new encryption type or key value in an UpdateObjectEncryption request. This article does not claim that these condition keys can restrict the target key.4.5 Permissions Readers Need After the Change
According to the Storage Blog, when transitioning from SSE-S3 to SSE-KMS, the principals that read the objects also need KMS permissions. The Storage Blog states the following (Storage Blog only):After updating encryption to SSE-KMS, IAM identities that read from the bucket must have the kms:Decrypt permission on the KMS key.
The Storage Blog further notes that without these permissions, read attempts will fail with an access denied error. Before making large-scale changes, the Storage Blog recommends using IAM Access Analyzer to identify the IAM principals accessing the bucket and to determine which of them require the
kms:Decrypt permission.5. Versions and Object Lock
This chapter describes what happens with buckets that have versioning enabled, and with objects protected by Object Lock.5.1 Versioning
This API can be used even with versioning enabled on a bucket. To modify the encryption of a specific version, you must specify the version ID in your request. If you do not specify a version ID, only the current version will be modified.If you don't specify version ID, the UpdateObjectEncryption request acts on the current version of the object.
Therefore, to align versions other than the current version with SSE-KMS, you need to make requests specifying the version ID for each version. The Storage Blog notes that when using S3 Batch Operations, you must include the version ID in the manifest to modify a specific version.
The pages do not document whether this API creates a new version. The page states that it preserves the last modified date and ETag and does not move data. From this, it appears that no new version is created (Inference). This article does not make a definitive claim.
5.2 Object Lock
This API will fail when dealing with objects that have an Object Lock retention mode or a legal hold applied. The page then splits the case in two.If a governance-mode retention period or a legal hold is removed first, this API can be used.
This API cannot be used with objects that have a compliance-mode retention period.
You can't use the UpdateObjectEncryption operation with objects that have an Object Lock compliance mode retention period applied to them.
The Errors section of the API reference lists this message as
AccessDenied. The Storage Blog states that in S3 Batch Operations jobs, these objects will appear as failed tasks. The Storage Blog also notes that objects with a compliance-mode retention period cannot be modified, as such a retention period cannot be removed by anyone until it expires. Permissions to remove governance-mode retention periods, and the mechanics of retention itself, are covered in the existing article Object Lock, Legal Holds, and Event Holds in Amazon S3.6. Replication
This chapter describes what does not propagate in buckets with replication configured.6.1 Not Propagated to the Destination
Even when runningUpdateObjectEncryption on the source bucket with live replication enabled, replica events do not occur on the destination bucket.UpdateObjectEncryption requests on source buckets with live replication enabled won't initiate replica events in the destination bucket.
To change the encryption of both source and destination objects, separate requests must be sent to the objects in both the source and destination buckets. The Storage Blog also notes that changes made via this API do not trigger replication events and recommends performing separate jobs on both the source and destination.
6.2 Batch Replication and Replication Roles
The page covers the case where you use S3 Batch Replication to replicate data across Regions. Objects that have had their encryption changed from SSE-S3 to SSE-KMS may require additional permissions. The source Region's bucket requires thekms:decrypt permission. The destination Region's bucket requires both the kms:decrypt and kms:encrypt permissions. The page writes these two in lowercase.The Storage Blog discusses scenarios where a bucket is the source for replication. Before starting, ensure that the IAM role configured for replication has the necessary KMS permissions for the new key. If the default encryption is changed while the role cannot use that key, in-progress replication and S3 Batch Replication jobs can fail (Storage Blog only).

7. Changing Objects in Bulk and Checking the Records
This chapter explains how to modify multiple objects at once, and what is recorded.7.1 S3 Batch Operations
S3 Batch Operations includes a job type calledUpdateObjectEncryption. The Batch Operations page states that a single job manifest can include up to 20 billion objects.A single UpdateObjectEncryption operation job can support a manifest with up to 20 billion objects.
When creating a job, you can either provide a list of objects yourself or generate a list based on specified criteria. According to the User Guide page, the criteria for generating a list include prefix, storage class, creation date, encryption type, key ARN, and the status of S3 Bucket Keys. To filter by encryption type, you can use the
MatchAnyObjectEncryption filter. When selecting SSE-KMS, you can further refine the list using the key ARN and the status of S3 Bucket Keys. The Batch Operations page recommends combining the key ARN filter (KmsKeyArn) with other metadata filters. Examples include MatchAnyPrefix, CreatedAfter, and MatchAnyStorageClass. Note that the key ARN in the request body is KMSKeyArn, while the key ARN in the filter is KmsKeyArn – the capitalization differs.When generating a list, specifying SSE-S3 or SSE-KMS as the encryption type will ensure that unsupported objects (as described in Section 2.2) are not included in the list. The Storage Blog states that if you provide your own list, you must ensure that it excludes these unsupported objects, otherwise the task will result in an error.
7.2 Completion Report
S3 Batch Operations allows you to generate completion reports. The Storage Blog recommends including all tasks in the report, recording both successes and failures. According to the Storage Blog, the report lists the result (Succeeded, Failed, or Skipped) for each object, along with details of any failure.The Storage Blog recommends storing the completion reports in a separate bucket (Storage Blog only).
A separate S3 bucket for the completion report is recommended because the completion reports are written using SSE-S3, so a bucket policy that requires SSE-KMS would reject them.
7.3 What Is Recorded
The page states thatUpdateObjectEncryption is an object-level operation (a data plane operation) and is recorded in S3 server access logs and AWS CloudTrail data events.UpdateObjectEncryption is an object-level (data plane) API operation that's logged to Amazon S3 server access logs and AWS CloudTrail data events.
The Amazon S3 CloudTrail events page lists
AWS::S3::Object data events and includes UpdateObjectEncryption. The same page also notes that CloudTrail does not record data events by default.By default, CloudTrail doesn't log data events.
To track within CloudTrail who changed the encryption for which object and when, it is necessary to configure data event logging before making those changes.
7.4 What the Pages Do Not Document
The following two items are not documented on the pages as of the review date. This article does not fill them in by guessing.- Whether this API creates a new version (see Section 5.1).
- Whether this API emits events for S3 Event Notifications or Amazon EventBridge. The pages describing the types of events for S3 Event Notifications and the events sent to EventBridge do not mention
UpdateObjectEncryption.
Furthermore, the condition keys described in Section 4.4 and the AWS managed keys mentioned in Section 2.3 are also not documented.
8. The Errors Section and Cases That Still Need a Copy
This chapter lists all the entries in the Errors section of the API reference, and then lists the cases that this API does not cover.8.1 The 13 Cases in the Errors Section
The API reference lists eightInvalidRequest messages and four AccessDenied messages in the Errors part of its description. The list of errors at the bottom of the page includes AccessDenied, InvalidRequest, and NoSuchKey. The corresponding HTTP status codes are 403, 400, and 404, respectively. The following table lists 12 messages along with NoSuchKey. The Description column is this article's summary of each message.| # | Error | Description | Section in This Article |
|---|---|---|---|
| 1 | InvalidRequest | Unencrypted source objects are not accepted. Only SSE-S3 or SSE-KMS source objects are accepted. | 2.2 |
| 2 | InvalidRequest | DSSE-KMS or SSE-C source objects are not accepted. | 2.2 |
| 3 | InvalidRequest | Changes to DSSE-KMS or SSE-C are not accepted. | 2.3 |
| 4 | InvalidRequest | Requests to modify encryption settings require AWS Signature Version 4. | — |
| 5 | InvalidRequest | The new encryption type is invalid. The only valid value is SSEKMS. | 2.3 |
| 6 | InvalidRequest | Requests to change to SSE-KMS are missing the key ARN. | 4.2 |
| 7 | InvalidRequest | The key ARN format is invalid. | 4.2 |
| 8 | InvalidRequest | The value of BucketKeyEnabled is neither true nor false. | 2.1 |
| 9 | AccessDenied | The key is not in the same account as the bucket. | 4.3 |
| 10 | AccessDenied | An account approved to use keys within its organization does not belong to an organization. | 4.3 |
| 11 | AccessDenied | The key is not in the same organization as the bucket. | 4.3 |
| 12 | AccessDenied | The object is protected by Object Lock. | 5.2 |
| 13 | NoSuchKey | The object with the specified key does not exist. | — |
The first message contains a grammatical error – the phrase
doesn't supported. This article does not correct these errors when quoting messages. Which message is returned for each request, beyond what is described in the API reference, is not documented on these pages. For example, when SSE-S3 is specified as the target, it is impossible to determine from these pages whether message number 3 or message number 5 will be returned.8.2 Cases That Still Need a Copy
In certain situations, theUpdateObjectEncryption API cannot modify the encryption of an object.| Situation | Reason Why This API Cannot Be Used | Section in This Article |
|---|---|---|
| Objects that are not encrypted | Not accepted as a source for modification | 2.2 |
| Objects using DSSE-KMS | Not accepted as a source for modification | 2.2 |
| Objects using SSE-C | Not accepted as a source for modification | 2.2 |
| Changing back to SSE-S3 | SSE-S3 cannot be specified as the target encryption type | 2.3 |
| Changing to DSSE-KMS or SSE-C | Cannot be specified as the target encryption type | 2.3 |
| Objects with a compliance-mode retention period | This API cannot be used | 5.2 |
| Objects in directory buckets and S3 on Outposts buckets | Outside the scope of this API | 2.4 |
Of the situations listed above, a copy becomes the way to change the encryption in the first five cases (Inference). The pages do not describe what to do when this API cannot be used. Because a copy writes a new object or version, the drawbacks that the Storage Blog lists in Section 3.4 likely apply (Inference).
For an object with a compliance-mode retention period, a copy does not change the encryption of the protected version itself (Inference). A copy creates a different object or version, and the protected version cannot be overwritten or deleted until the retention period expires. The encryption settings for directory buckets and how to handle existing data are covered in the existing article Encryption Controls by Service on AWS Storage.
Objects with a governance-mode retention period or a legal hold are not included in this table. If removed, they can be modified using this API (Section 5.2). Keys from accounts outside the organization are also not included in this table. While this API cannot use such keys (Section 4.3), whether copying is an option is outside the scope of this article.
9. Frequently Asked Questions about UpdateObjectEncryption
Q1. Can UpdateObjectEncryption be used to convert all objects in a bucket to SSE-KMS?
UpdateObjectEncryption can only be used to convert objects that are already encrypted using SSE-S3 or SSE-KMS. It does not support objects that are unencrypted, encrypted with DSSE-KMS, or encrypted with SSE-C. It also cannot be used on objects with a compliance-mode retention period. In buckets with versioning enabled, if a version ID is not specified, only the current version will be updated.Q2. Is it possible to revert from SSE-KMS back to SSE-S3?
Not with this API. You can only specify SSE-KMS as the target. According to the Errors section of the API reference, the only valid value for a new encryption type isSSEKMS.Q3. Do objects at the live replication destination change too?
No, they do not. Even when executed at the source, replica events do not occur in the destination bucket. To modify the destination objects, you must send a separate request to the destination bucket.Q4. If the encryption is changed, do the last modified date and ETag change?
No, they do not. The page states that objects retain all metadata properties, including storage class, creation date, last modified date, ETag, and checksum. Because the operation is not counted as an access for S3 Intelligent-Tiering, the object will not revert to the Frequent Access tier.Q5. Can you specify a customer managed key from a different account?
By default, this is not possible. By default, you are limited to keys held by the account that owns the bucket. If you are using AWS Organizations, you can request assistance from AWS Support to enable the use of keys held by another member account within the organization. In that case, you will also need theorganizations:DescribeAccount permission.Q6. Can the encryption of objects protected by Object Lock be changed?
It depends on the type of protection. Encryption can be changed if the governance-mode retention period or legal hold is removed first. This API cannot be used for objects with a compliance-mode retention period.Q7. After changing the encryption, can the application fail to read the data?
Yes, it is possible. The Storage Blog states that after switching to SSE-KMS, IAM principals that read from the bucket need thekms:Decrypt permission for that key. If that permission is not granted, read attempts will fail with an access denied error. Before making large-scale changes, it is important to identify all principals that will be reading data.Q8. Will records indicate who changed the encryption?
Yes, if logging is enabled. The page states that this operation is recorded in both the S3 server access logs and the CloudTrail data events. However, CloudTrail does not record data events by default, so it is necessary to configure data event logging beforehand.10. Summary
UpdateObjectEncryption allows you to change the encryption of encrypted objects in an S3 general purpose bucket, without moving the data. It supports changing from SSE-S3 and SSE-KMS to SSE-KMS only. The three use cases on the page are changing from SSE-S3 to SSE-KMS, applying S3 Bucket Keys, and changing customer managed keys. When making changes, the storage class, creation date, last modified date, ETag, and checksum remain unchanged. It does not restore objects stored in Glacier, nor does it change the tiering level for objects using Intelligent-Tiering.For live replication destinations, no replica events are triggered. Objects in the destination bucket are changed separately. Unless a version ID is specified, only the current version is modified. Governance-mode retention periods and legal holds must be removed before the object can be changed. This API cannot be used on objects with compliance-mode retention periods. The target key must be specified using its full ARN, and by default, it is limited to keys within the same account as the bucket. After changing to SSE-KMS, readers need the
kms:Decrypt permission (Storage Blog only).For unencrypted objects, objects encrypted with DSSE-KMS and SSE-C, and when changing to SSE-S3, DSSE-KMS, and SSE-C, data copying is still required (Inference). Whether a new version is created, event notifications are triggered, or condition keys evaluate the new key is not documented on the pages as of the review date. This article is based on materials current as of November 30, 2026 (Japan Standard Time). Before running the operation, reopen the User Guide page and the API reference.
11. References
- Updating server-side encryption for existing data - Amazon Simple Storage Service
- Update object encryption - Amazon Simple Storage Service
- Creating a Batch Operations job to update object encryption - Amazon Simple Storage Service
- UpdateObjectEncryption - Amazon S3 API Reference
- Actions, resources, and condition keys for Amazon S3 - Service Authorization Reference
- Amazon S3 CloudTrail events - Amazon Simple Storage Service
- Specifying server-side encryption with AWS KMS (SSE-KMS) - Amazon Simple Storage Service
- Event notification types and destinations - Amazon Simple Storage Service
- EventBridge event message structure - Amazon Simple Storage Service
- Change the server-side encryption type of Amazon S3 objects
- Amazon S3 starts rolling out new security best practice to new and existing buckets by default
- Updating encryption on existing Amazon S3 objects with S3 Batch Operations - AWS Storage Blog
- Encryption Controls by Service on AWS Storage - What Is On by Default, Which Key You Can Choose, and What Turning It On Does Not Re-encrypt
- Object Lock, Legal Holds, and Event Holds in Amazon S3 - Who Can Shorten a Retention Period, What a Hold Adds, and When the Retention Clock Starts
- Amazon S3 Security and Access Control Guide - Bucket Policies, IAM, Access Points, Block Public Access, and Encryption
- AWS Security Defaults History - Block Public Access, Default Encryption, IMDSv2, and How Far Each Changed Default Reached
- Default Checksums and Data Integrity in Amazon S3 - What the SDK Computes, What S3 Stores, and Why the Default Algorithm Depends on Which SDK You Use
- AWS KMS Envelope Encryption and Data Key Caching Patterns - Design Decisions for the AWS Encryption SDK and Multi-Region Keys
- AWS History and Timeline regarding Amazon S3 - Focusing on the evolution of features, roles, and prices beyond mere storage
References:
Tech Blog with curated related content
Written by Hidekazu Konishi