GREsau / localstack-persist

LocalStack Community Edition with support for persisted resources.
https://hub.docker.com/r/gresau/localstack-persist
Apache License 2.0
67 stars 9 forks source link

S3_TRUNCATE_KEYS is not working #14

Closed drochgenius closed 2 weeks ago

drochgenius commented 2 weeks ago

Context

Because of the way LocalStack persists S3 objects on disk, the key length is limited to 255 chars. When an S3 object key is longer than that is would error out:

exception while calling s3.PutObject: [Errno 36] File name too long: '/persisted-data/s3/assets/plankton-pipeline/your-very-long-s3-key'

Problem

In LocalStack version 3.1.0, support for S3 keys longer than 255 chars was added via the S3_TRUNCATE_KEYS environment flag.

https://github.com/localstack/localstack/issues/10047

However, even though localstack-persist is based on 3.6, this feature is not working.

GREsau commented 2 weeks ago

Thanks for the report - this should now be fixed in v3.6.1, which will be on docker hub in 5 mins or so 🙂

drochgenius commented 2 weeks ago

That's awesome! Thank you, I'll test it shortly.