ECS:AWS CLI 失敗,並顯示「此要求缺少必要的標頭:內容-MD5

Summary: 自 亞馬遜雲科技 CLI 版本 2.23.0 起,某些操作會報告錯誤。原因是使用了新的校驗和演演演算法。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

使用 AWS CLI 2.23.0 及更新版本,例如用於 PutBucketLifecycleConfiguration 或 PutBucketReplication 而 ECS 會導致類似以下的錯誤:

"An error occurred (InvalidRequest) when calling the PutBucketLifecycleConfiguration operation: Missing required header for this request: Content-MD5"

範例:

aws --version
aws-cli/2.24.1 Python/3.12.6 Linux/5.15.167.4-microsoft-standard-WSL2 exe/x86_64.ubuntu.24

aws --profile=Gen3 --endpoint-url=http://X.X.X.X:9020 s3api put-bucket-lifecycle-configuration --bucket bkt_01 --lifecycle-configuration file://lifecycle_01.json

An error occurred (InvalidRequest) when calling the PutBucketLifecycleConfiguration operation: Missing required header for this request: Content-MD5

Cause

AWS CLI 2.23.0(及更高版本)中的更改預設對 S3 操作使用新的校驗和演演演算法。
AWS CLI 現在使用 x-amz-sdk-checksum-algorithm: CRC64NVME

Resolution

使用版本 2.23.0 之前的 AWS CLI 版本或其他 S3 用戶端。未來版本將提供 ECS CRC64NVME支援。

Affected Products

ECS, ECS Appliance, ECS Appliance Hardware Series, ECS Appliance Software with Encryption, ECS Appliance Software without Encryption
Article Properties
Article Number: 000299507
Article Type: Solution
Last Modified: 11 Nov 2025
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.