I need to launch Nuclei within AWS Lambda. It is a read-only environment. The goal is to trigger the function after each deployment automatically.
I mounted a filesystem to my lambda to write files there (/mnt/nuclei) and specified template and cache dirs location in /mnt/nuclei.
My lambda is an image-based container (public.ecr.aws/lambda/provided:al2) where I copied my Golang code that exec the nuclei (/var/runtime/nuclei).
I've got some errors:
- failed to create config directory at .nuclei-config/nuclei got: mkdir .nuclei-config: read-only file system
- failed to write config file at .nuclei-config/nuclei/.templates-config.json got: [:RUNTIME] could not create nuclei config directory at .nuclei-config/nuclei <- mkdir .nuclei-config: read-only file system
- failed to load provider keys got [uncover:RUNTIME] provider config file .uncover-config/uncover/provider-config.yaml does not exist
I suppose I need to override some path (if possible).
Is there any boilerplate describing how to launch nuclei via an AWS lambda function in a read-only environment?