I've been looking at implementing the aws_encryption_sdk in a lambda to deal with encrypted files that are uploaded into a s3 bucket.
I have been able to get it to work by downloading the file into the /tmp directory (giving the file a unique name), decrypting the file in the same directory and then uploading the decrypted file back into s3. I am also deleting the files in the system after the operation has completed, but before exiting the lambda
While using the file system is common use case, I have concerns around the use of the /tmp directory and its security.
Can anyone advise whether I should be concerned? How exclusive is the file system when you fire up Lambdas?
Thanks