@me Thinking to build a prototype for https://github.com/captn3m0/ideas#verifiable-code-execution-on-cloud.
Plan:
1. Trigger the lambda.
2. Hold it (long-polling as above)
3. Validate the lambda configuration to trust the execution environment. Things like: Correct code, no cloudtrail/telemetry/extensions on lambda/validate ingress guarantess/check for traffic mirroring etc. This happens via a second aws account that has read permissions on the execution account.
4. Finally, once trust is established, pass the actual data to the lambda.