Hi Folks,
I am trying update the KMS key for one object and following this command with the Localstack but I am getting failure. This is my scenario
creating 2 kms keys
aws kms --endpoint-url=http://localhost:61000 create-key --description "My KMS Key” // dbc1c394-f063-428c-98c0-1edb99839429
aws kms --endpoint-url=http://localhost:61000 create-key --description "My New Key” // b9b6ad03-529d-4eea-80d8-4d69eae41d7a
and then uploading one file via first KMS key
aws s3api --endpoint-url=http://localhost:61000 put-object --bucket test --key v2/ekm/test1 \ --body snapshot.blob \ --server-side-encryption aws:kms \ --ssekms-key-id "dbc1c394-f063-428c-98c0-1edb99839429"
and then updating the kmskey with the new one
aws s3api --endpoint-url=http://localhost:61000 copy-object --bucket test --key v2/ekm/test1 --copy-source test/v2/ekm/test1 --metadata-directive REPLACE --server-side-encryption "aws:kms" --ssekms-key-id "b9b6ad03-529d-4eea-80d8-4d69eae41d7a"
however, once I replace the file I can not access the file anymore and getting following error while downloading it
aws s3api --endpoint-url=http://localhost:61000 get-object --bucket test --key v2/ekm/test1 asd
0 read, but total bytes expected is 13.
This looks to me bug but before opening issue on the github I would like to get your opinions. I am using latest version of the localstack (3.2.0)
Thanks