11.4 では可能な場合、 awscli 経由で 11.5 にオブジェクトロックバケットを作成できません
環境
問題
<user>@<nodename>:~>
aws --profile <profile name> --endpoint-url <endpoint url> s3api create-bucket --bucket<bucketname> --object-lock-enabled-for-bucket
{
"Location": "/<location>"
}
2022-02-08 09:20:18,064 - MainThread -
urllib3.connectionpool - DEBUG - <endpoint>"PUT /<bucketname> HTTP/1.1" 200 0
StorageGRID 11.5 :
<user<@<nodename>:~> aws --profile <profile name> --endpoint-url
<endpoint url> s3api create-bucket --bucket <bucketname> --object-lock-enabled-for-bucket
An error occurred
(InvalidRequest) when calling the CreateBucket operation: S3 Object Lock has not been enabled for the grid. Contact your
StorageGRID administrator to enable this setting.
2022-02-08 09:16:48,399 - MainThread - urllib3.connectionpool - DEBUG -
<endpoint>"PUT /<bucketname> HTTP/1.1" 400 290