I hadn't thought of using something like this for mitigating outages. Do you mind elaborating on that a bit more?
Currently there isn't a simple way to switch off the debug mode. So if `sst start` deploys the Lambda with the debug mode, `sst deploy` will disable it by putting the original Lambda back. But your idea of switching it on and off should work!
For the IAM portion, we are don't use the IAM credentials of the local machine while executing the Lambda. We use the credentials of the original Lambda. This allows for testing against the right credentials.
Appreciate the feedback! If you've have any questions or are curious about the internals, I'd love to hear from you jay@anoma.ly