Disable Function Per Stage?

@AdamM I would still deploy those functions but optionally disable certain logic per stage. You could do that by injecting the stage as an environment variable. You can then check the variable and not invoke certain logic based on that.

I wouldn’t avoid triggering those lambdas, otherwise how do you know those triggers actually work? Just stub out what you need to and log that it was triggered. That said, if you’re only execute code in production, you run a real risk of having issues that only appear in production.

1 Like