I have a lamba function to copy objects from bucket 'A' to bucket 'B', and everything works fine until an object called 'New Text Document.txt' is created in the bucket 'A', json which is being built in the S3 event , key as "key": "New + Text + .txt Document".
spaces are replaced by "+". I know this is a known issue, serialization on the Internet. But I'm not sure how to fix this, and the incoming json itself has "+" and "+", maybe in fact in the file name. e.g. "New + Text Document.txt".
Therefore, I cannot blindly have logic in the '+' by '' space in my lambda function.
Because of this problem, when the code tries to find the file in the bucket, it does not find it.
Please offer.
source
share