How can I write to AWS Lambda local file system?

No specific hard recommendations here.

The /tmp folder is writable. However, the filesystem is not shared across lambda containers, so you’ll probably be better off using S3 or a database to store and update the YAML.