If the libraries in your functions try to write configuration files to the current directory, the [Errno 30] Read-only file system: '/code/.xxx error may be returned. To resolve this issue, set the current directory of the process to /tmp before you execute the function. The /tmp directory is readable and writable.
- Python
def my_handler(event, context): import os os.chdir('/tmp') // Other code - Node.js
exports.handler = function(event, context, callback) { process.chdir('/tmp'); // Other code };